PIP 5.9.0
Platform-Independent Primitives
Loading...
Searching...
No Matches
PIMemoryBlock Struct Reference

Helper struct to store and restore custom blocks of data to/from PIBinaryStream. More...

#include <pimemoryblock.h>

Public Member Functions

 PIMemoryBlock ()
 Constructs empty memory block.
 PIMemoryBlock (const void *data_, const int size_)
 Constructs memory block from pointer and size.
 PIMemoryBlock (const PIMemoryBlock &o)
 Copy constructor.
PIMemoryBlock & operator= (const PIMemoryBlock &o)
 Copy assignment operator.
void * data ()
 Returns pointer to block data.
const void * data () const
 Returns pointer to block data.
int size () const
 Returns block size in bytes.
bool isNull () const
 Returns true when the block stores a non-null pointer.

Detailed Description

Helper struct to store and restore custom blocks of data to/from PIBinaryStream.