C++ API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

List of all members
MemoryBlock Class Reference

Serializable memory block, owner of the memory. More...

Class Declaration

Constructor & Destructor Documentation

MemoryBlock ( )
inline

Default constructor

MemoryBlock ( size_t  n)

Constructs Memory Block object by allocating memory of size equal to the requested number of bytes

Parameters
[in]nNumber of bytes to allocate

Member Function Documentation

virtual services::Status deserializeImpl ( const interface1::OutputDataArchive archive)
inlineprotectedvirtual

Interfaces for the implementation of deserialization

Parameters
[in]archiveStorage for a deserialized object or data structure

Implements SerializationIface.

byte* get ( )
inline

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
void release ( )

Releases owned memory

void reserve ( size_t  n)

Allocates given number of bytes. Owned memory is reallocated if its size is less than required

Parameters
[in]nNumber of bytes to allocate
Returns
Reference to SharedPtr of the SerializationIface type
virtual services::Status serializeImpl ( interface1::InputDataArchive archive)
inlineprotectedvirtual

Interfaces for the implementation of serialization

Parameters
[in]archiveStorage for a serialized object or data structure

Implements SerializationIface.

size_t size ( ) const
inline

Returns the size of stored memory in bytes

Returns
Number of stored bytes

The documentation for this class was generated from the following file:

For more complete information about compiler optimizations, see our Optimization Notice.