MemoryIStream.hpp

Useful for streaming data from contiguous memory. Status: RELEASE.

struct MemoryBuf : public std::streambuf
#include <MemoryIStream.hpp>

Subclassed by MemoryIStream

Public Functions

inline MemoryBuf(char const *base, size_t size)
Parameters:
  • base – address to beginning of memory region to stream from

  • size – number of bytes available to stream

struct MemoryIStream : public virtual MemoryBuf, public std::istream
#include <MemoryIStream.hpp>

Public Functions

inline MemoryIStream(char const *base, size_t size)
Parameters:
  • base – address to beginning of memory region to stream from

  • size – number of bytes available to stream