Serializable memory block, owner of the memory.
More...
Constructs Memory Block object by allocating memory of size equal to the requested number of bytes
- Parameters
-
[in] | n | Number of bytes to allocate |
Interfaces for the implementation of deserialization
- Parameters
-
[in] | archive | Storage for a deserialized object or data structure |
Implements SerializationIface.
Returns pointer to the owned memory
- Returns
- Pointer to the owned memory
const byte* get |
( |
| ) |
const |
|
inline |
Returns pointer to the owned memory
- Returns
- Pointer to the owned memory
Allocates given number of bytes. Owned memory is reallocated if its size is less than required
- Parameters
-
[in] | n | Number of bytes to allocate |
- Returns
- Reference to SharedPtr of the SerializationIface type
Interfaces for the implementation of serialization
- Parameters
-
[in] | archive | Storage for a serialized object or data structure |
Implements SerializationIface.
Returns the size of stored memory in bytes
- Returns
- Number of stored bytes
The documentation for this class was generated from the following file: