C++ API Reference for Intel® Data Analytics Acceleration Library 2018 Update 2

List of all members
MemoryBlock Class Reference

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

Class Declaration

Constructor & Destructor Documentation

◆ MemoryBlock() [1/2]

MemoryBlock ( )
inline

Default constructor

◆ MemoryBlock() [2/2]

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

◆ deserializeImpl()

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.

◆ get() [1/2]

byte* get ( )
inline

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

void release ( )

Releases owned memory

◆ reserve()

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

◆ serializeImpl()

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

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.