ReadonlybyteReadonlycontentStable identity of the CONTENT. null when there is no source.
ReadonlyisTrue when the bytes are contiguous and resident: slice is a view and
materialize is free.
ReadonlylengthAlias of byteLength, kept so existing ?.length guards compile
and behave identically. Prefer byteLength in new code.
UTF-8 decode of [start, end), without allocating an intermediate view
when the implementation can avoid it. This is the hot path.
The whole source as one contiguous view. May allocate byteLength bytes,
so callers must drop the result promptly. Prefer
withMaterialized, which makes that structural.
Bytes in [start, end). Clamped to the source and never throws, so a
caller reading a stale byte range gets an empty or short view rather than
an exception. Returns a view when resident.
Describe the source for a worker without materialising it here.
Scoped materialize: the buffer cannot outlive the callback.
Async form of withMaterialized.
Logical (uncompressed) length.
0means "this model has no source".