Serializable memory block, owner of the memory.
More...
◆ MemoryBlock() [1/2]
◆ MemoryBlock() [2/2]
Constructs Memory Block object by allocating memory of size equal to the requested number of bytes
- Parameters
-
[in] | n | Number of bytes to allocate |
◆ deserializeImpl()
Interfaces for the implementation of deserialization
- Parameters
-
[in] | archive | Storage for a deserialized object or data structure |
Implements SerializationIface.
◆ get() [1/2]
Returns pointer to the owned memory
- Returns
- Pointer to the owned memory
◆ get() [2/2]
const byte* get |
( |
| ) |
const |
|
inline |
Returns pointer to the owned memory
- Returns
- Pointer to the owned memory
◆ release()
◆ reserve()
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
◆ serializeImpl()
Interfaces for the implementation of serialization
- Parameters
-
[in] | archive | Storage for a serialized object or data structure |
Implements SerializationIface.
◆ size()
Returns the size of stored memory in bytes
- Returns
- Number of stored bytes
The documentation for this class was generated from the following file: