header
Overview
header is a struct in Aspose.Email FOSS for C++.
Description
header is a class in the Aspose.Email FOSS library for C++ that exposes 2 methods and 18 properties for programmatic use.
Core capabilities include: std::array<std::uint8_t, 8>; std::array<std::uint8_t, 16>; std::uint16_t. These operations enable developers to integrate header functionality directly into C++ applications.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
header_signature | std::array<std::uint8_t, 8> | Read/Write | Holds the 8‑byte CFB file signature |
header_clsid | std::array<std::uint8_t, 16> | Read/Write | Holds the 16‑byte CLSID of the storage |
minor_version | std::uint16_t | Read/Write | Stores the minor version of the CFB format |
major_version | std::uint16_t | Read/Write | Stores the major version of the CFB format |
byte_order | std::uint16_t | Read/Write | Stores the byte order marker (typically 0xFFFE) |
sector_shift | std::uint16_t | Read/Write | Stores the power‑of‑two shift to compute sector size |
mini_sector_shift | std::uint16_t | Read/Write | Stores the shift to compute mini sector size |
reserved | std::array<std::uint8_t, 6> | Read/Write | Contains six reserved bytes |
number_of_directory_sectors | std::uint32_t | Read/Write | Stores count of directory sectors |
number_of_fat_sectors | std::uint32_t | Read/Write | Stores count of FAT sectors |
first_directory_sector_location | std::uint32_t | Read/Write | Stores the index of the first directory sector |
transaction_signature_number | std::uint32_t | Read/Write | Stores the transaction signature number |
mini_stream_cutoff_size | std::uint32_t | Read/Write | Stores the cutoff size for mini streams |
first_mini_fat_sector_location | std::uint32_t | Read/Write | Stores the index of the first mini FAT sector |
number_of_mini_fat_sectors | std::uint32_t | Read/Write | Stores count of mini FAT sectors |
first_difat_sector_location | std::uint32_t | Read/Write | Stores the index of the first DIFAT sector |
number_of_difat_sectors | std::uint32_t | Read/Write | Stores count of DIFAT sectors |
difat | std::vector<std::uint32_t> | Read/Write | Holds the DIFAT sector chain as a vector of sector indices |
Methods
| Signature | Description |
|---|---|
sector_size() → std::size_t | Returns the size of a regular sector in bytes |
mini_sector_size() → std::size_t | Returns the size of a mini sector in bytes |