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

A memory reader pipe class that reads data from a memory buffer. More...

#include <pipe.h>

Inheritance diagram for Pipe::CMemReaderPipe:
Pipe::CPipe

Public Member Functions

size_t Size () const
 Gets the size of the memory buffer.
 
 CMemReaderPipe (const u8 *addr_, size_t bytesize_)
 Constructs a memory reader pipe.
 
- 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.
 

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 reader pipe class that reads data from a memory buffer.

Constructor & Destructor Documentation

◆ CMemReaderPipe()

Pipe::CMemReaderPipe::CMemReaderPipe ( const u8 * addr_,
size_t bytesize_ )
inline

Constructs a memory reader pipe.

Parameters
addr_The address of the memory buffer.
bytesize_The size of the memory buffer.

Member Function Documentation

◆ Size()

size_t Pipe::CMemReaderPipe::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 file: