PIP 6.1.0
Platform-Independent Primitives
Loading...
Searching...
No Matches
pimemoryblock.h File Reference

Memory block helper struct for data storage and binary stream operations The PIMemoryBlock struct provides a lightweight wrapper to store and restore custom blocks of data to/from PIBinaryStream. It holds a pointer to data and its size in bytes. More...

Classes

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

Functions

template<typename T>
PIMemoryBlock createMemoryBlock (const T *ptr)
 Creates PIMemoryBlock for object pointed by "ptr".

Detailed Description

Memory block helper struct for data storage and binary stream operations The PIMemoryBlock struct provides a lightweight wrapper to store and restore custom blocks of data to/from PIBinaryStream. It holds a pointer to data and its size in bytes.