Free Electron
Public Member Functions | Public Attributes | List of all members
MemStream Class Reference

Implementation of std::istream for raw byte buffer. More...

#include <MemStream.h>

Inherits istream.

Public Member Functions

 MemStream (const uint8_t *p, size_t l)
 

Public Attributes

MemBuf m_memBuf
 

Detailed Description

Implementation of std::istream for raw byte buffer.

Usage:

MemStream memstream(pBuffer, bufferSize);

See https://tuttlem.github.io/2014/08/18/getting-istream-to-work-off-a-byte-array.html


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