![]() |
PIP 5.6.1
Platform-Independent Primitives
|
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. | |
Helper struct to store and restore custom blocks of data to/from PIBinaryStream.