Representation of an attachment. An attachment is a binary blob, its inner structure is opaque.
More...
#include <libCZI.h>
Representation of an attachment. An attachment is a binary blob, its inner structure is opaque.
◆ DangerousGetRawData() [1/2]
template<class Q >
void libCZI::IAttachment::DangerousGetRawData |
( |
const Q *& |
ptr, |
|
|
size_t & |
size |
|
) |
| const |
|
inline |
A helper method used to cast the pointer to a specific type.
- Parameters
-
[out] | ptr | The pointer to the data is stored here. |
[out] | size | The size of the data. |
◆ DangerousGetRawData() [2/2]
virtual void libCZI::IAttachment::DangerousGetRawData |
( |
const void *& |
ptr, |
|
|
size_t & |
size |
|
) |
| const |
|
pure virtual |
Get a pointer to the raw data. Note that the pointer returned is only valid during the lifetime of the sub-block-object.
- Parameters
-
[out] | ptr | The pointer to the data is stored here. |
[out] | size | The size of the data. |
◆ GetAttachmentInfo()
virtual const AttachmentInfo & libCZI::IAttachment::GetAttachmentInfo |
( |
| ) |
const |
|
pure virtual |
Gets information about the attachment.
- Returns
- The attachment information.
◆ GetRawData()
virtual std::shared_ptr< const void > libCZI::IAttachment::GetRawData |
( |
size_t * |
ptrSize | ) |
|
|
pure virtual |
Gets raw data.
- Parameters
-
[out] | ptrSize | If non-null, size of the data buffer is stored here. |
- Returns
- The raw data.
The documentation for this class was generated from the following file: