Library of Assembled Shared Sources
lass::io::BinaryIMemoryBlock Class Reference

Input Stream from a memory block. More...

#include <binary_i_memory_block.h>

Inheritance diagram for lass::io::BinaryIMemoryBlock:
Collaboration diagram for lass::io::BinaryIMemoryBlock:

Public Member Functions

 BinaryIMemoryBlock ()
 Construct an "empty" closed stream.
 
 BinaryIMemoryBlock (const void *begin, pos_type size)
 Construct stream by pointer to memory block and length of block.
 
 BinaryIMemoryBlock (const void *begin, const void *end)
 Construct stream by pointer to memory block and to one byte past end of block.
 
size_t read (void *out, size_t numberOfBytes)
 read a number of bytes from stream to buffer
 

Detailed Description

Input Stream from a memory block.

Definition at line 68 of file binary_i_memory_block.h.

Constructor & Destructor Documentation

◆ BinaryIMemoryBlock()

lass::io::BinaryIMemoryBlock::BinaryIMemoryBlock ( )

Construct an "empty" closed stream.

Definition at line 55 of file binary_i_memory_block.cpp.

Member Function Documentation

◆ read()

size_t lass::io::BinaryIStream::read ( void * output,
size_t numBytes )
inherited

read a number of bytes from stream to buffer

Parameters
iBytespointer to buffer. Must be able to contain at least numBytes bytes.
numBytesnumber of bytes to be read

Definition at line 261 of file binary_i_stream.cpp.

References read().

Referenced by read().


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