PIP 5.6.1
Platform-Independent Primitives
Public Member Functions | List of all members
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.
 
PIMemoryBlockoperator= (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.