libCZI
Reading and Writing CZI documents made easy
Loading...
Searching...
No Matches
libCZI::AddAttachmentInfo Struct Reference

This struct describes an attachment to be added to a CZI-file. More...

#include <libCZI_Write.h>

Public Member Functions

void SetContentFileType (const char *sz)
 
void SetName (const char *sz)
 

Public Attributes

GUID contentGuid
 Unique identifier for the content.
 
std::uint8_t contentFileType [8]
 The content file type.
 
std::uint8_t name [80]
 The attachment's name.
 
const void * ptrData
 Pointer to the attachment data.
 
std::uint32_t dataSize
 Size of the attachment data (in bytes).
 

Detailed Description

This struct describes an attachment to be added to a CZI-file.

Member Function Documentation

◆ SetContentFileType()

void libCZI::AddAttachmentInfo::SetContentFileType ( const char *  sz)
inline

Sets content file type. Note that the 'content file type' is a fixed-length string (of length 8), longer strings will be truncated.

Parameters
szThe 'content file type'-string.

◆ SetName()

void libCZI::AddAttachmentInfo::SetName ( const char *  sz)
inline

Sets 'name' of the attachment. Note that the 'content file type' is a fixed-length string (of length 80), longer strings will be truncated.

Parameters
szThe 'name'-string.

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