Structure Description: FileSection#

struct FileSection#

Subclassed by AdditionalLayerInfo, ChannelImageData, ColorModeData, FileHeader, GlobalLayerMaskInfo, ImageData, ImageResources, LayerAndMaskInformation, LayerInfo, LayerRecord, LayerRecords::LayerBlendingRanges, LayerRecords::LayerMask, LayerRecords::LayerMaskData, LinkedLayerItem::Date, PascalString, ResourceBlock, TaggedBlockStorage, UnicodeString

Public Functions

inline void initialize(size_t offset, size_t size) noexcept#

Initialize the file section with a size and offset. If re-initialization is needed this function may be called again

template<typename T = size_t>
inline T size() const#

Get the size of the FileSection as the given integral type checking internally if this access would overflow the template argument T. This function is primarily intended for structures such as a PascalString which may only be a max of uint8_t in size.

inline void size(size_t size) noexcept#

Set the size of the file section.

inline void addSize(size_t increment)#

Add to the size of the FileSection.