Class IMemoryBlock#

Class Documentation#

class IMemoryBlock#

Interface representing a “block of memory”. It is used to hold the result of a compression-operation.

Public Functions

virtual void *GetPtr() = 0#

Gets pointer to the memory block. This memory is owned by this object instance (i. e. the memory is valid as long as this object lives). The size of this memory block is given by “GetSizeOfData”.

Returns:

Pointer to the memory block.

virtual size_t GetSizeOfData() const = 0#

Gets size of the data (for which a pointer can be retrieved by calling “GetPtr”).

Returns:

The size of data in bytes.

virtual ~IMemoryBlock() = default#