ConstChecks if an offset falls within a range.
The range to check.
The offset to test.
True if start <= offset <= end.
Creates a ByteRange with validation.
The starting offset (inclusive).
The ending offset (inclusive).
A ByteRange if valid.
Creates a ByteRange from a starting offset and length.
The starting offset (inclusive).
The number of bytes.
A ByteRange spanning length bytes from start.
Utility namespace for creating and manipulating byte ranges.