Class OsfOffset
Defined in File offset.h
Class Documentation
-
class OsfOffset
Represents an offset and size in an OSF file.
Includes helpers to check validity, compare offsets, and access individual components.
Public Functions
-
OsfOffset() = default
-
OsfOffset(const OsfOffset &other) = default
Default copy constructor for OsfOffset.
- Parameters:
other[in] – The OsfOffset to copy.
-
OsfOffset(OsfOffset &&other) = default
Default move constructor for OsfOffset.
- Parameters:
other[in] – The OsfOffset to move from.
-
OsfOffset(const uint64_t offset_in, const uint64_t size_in)
Constructs an OsfOffset from a given offset and size.
- Parameters:
offset_in[in] – Byte offset within the OSF file.
size_in[in] – Size of the data span in bytes.
-
uint64_t offset() const
Gets the byte offset in the OSF file.
- Returns:
The offset in bytes.
-
uint64_t size() const
Gets the size of the chunk associated with this offset.
- Returns:
The chunk size in bytes.
-
OsfOffset() = default