BEEP-8 Helper Lib 1.0.0
Loading...
Searching...
No Matches
Pipe::CMemBufferPipe Class Reference

A memory buffer pipe class that holds data in a buffer. More...

#include <pipe.h>

Inheritance diagram for Pipe::CMemBufferPipe:
Pipe::CPipe

Public Member Functions

void Dump ()
 Dumps the contents of the memory buffer.
 
size_t Size () const
 Gets the size of the memory buffer.
 
- Public Member Functions inherited from Pipe::CPipe
bool Push (const std::string &str_)
 Pushes a string of data into the pipe.
 
bool Push (u8 x_)
 Pushes a byte of data into the pipe.
 
void SeekPop (size_t offset_=0)
 Sets the position for the next Pop operation.
 
bool Pop (u8 &x_)
 Pops a byte of data from the pipe.
 

Public Attributes

std::vector< u8 > _buff
 

Additional Inherited Members

- Protected Attributes inherited from Pipe::CPipe
size_t _pushed_in_bytes = 0
 
size_t _poped_in_bytes = 0
 

Detailed Description

A memory buffer pipe class that holds data in a buffer.

Member Function Documentation

◆ Size()

size_t Pipe::CMemBufferPipe::Size ( ) const
inline

Gets the size of the memory buffer.

Returns
The size of the memory buffer.

The documentation for this class was generated from the following files: