SegmentLocation

data class SegmentLocation(val headerOffset: Int, val headerLength: Int, val dataLength: Long)

Position + size of a segment inside the file. headerLength is the subheader (LISH/LSSH/LTSH/LDSH/LRESH), dataLength is the segment data (LI/LS/LT/LD/LRE).

Constructors

Link copied to clipboard
constructor(headerOffset: Int, headerLength: Int, dataLength: Long)

Properties

Link copied to clipboard

Length of the segment data in bytes.

Link copied to clipboard

Absolute byte offset of the segment's data section (just past the subheader).

Link copied to clipboard

Length of the subheader in bytes.

Link copied to clipboard

Absolute byte offset of the segment's subheader (first byte).

Link copied to clipboard

Total bytes consumed by this segment (subheader + data).