OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C API referencev12.0

optris_sdk_attachment_info

What one application-attached file is, without reading its bytes.

Public attributes

struct_size

uint32_t struct_size

Set to sizeof(optris_sdk_attachment_info), or call optris_sdk_attachment_info_init().

name

char name[OPTRIS_SDK_MAX_NAME]

As the writer recorded it.

mime

char mime[OPTRIS_SDK_MAX_NAME]

As the writer recorded it.

size

uint64_t size

Uncompressed byte count, which is how large a buffer optris_sdk_snapshot_read_attachment() needs.

sha256

char sha256[65]

Lowercase hex SHA-256 of the uncompressed bytes, 64 characters and a terminator. Already verified when the file was opened; it is here so an application can record what it read.