libCZI
Reading and Writing CZI documents made easy
Loading...
Searching...
No Matches
libCZI::IMemoryBlock Class Referenceabstract

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

#include <libCZI_compress.h>

Public Member Functions

virtual void * GetPtr ()=0
 
virtual size_t GetSizeOfData () const =0
 

Detailed Description

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

Member Function Documentation

◆ GetPtr()

virtual void * libCZI::IMemoryBlock::GetPtr ( )
pure virtual

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.

◆ GetSizeOfData()

virtual size_t libCZI::IMemoryBlock::GetSizeOfData ( ) const
pure virtual

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

Returns
The size of data in bytes.

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