DTTPayloadRef class

Where a block of bytes lives and how it is verified. The payload lane is CID-first: a tile record addresses its bytes so an epoch can be verified rather than trusted, and carries them inline only when the block is small enough that a second fetch costs more than it saves. Exactly one of CID or BYTES is the authority for a given ref; when both are present the bytes MUST hash to the CID.

Constructors

DTTPayloadRef(List<int> bytes)
factory

Properties

BYTES → List<int>?
The block inline. Reserved for small blocks; a tile pyramid is distributed by CID, never by embedding megabytes per record.
no setter
CID → String?
Content identifier of the block in the dataset lane.
no setter
CONTENT_ENCODING → String?
Content encoding applied to the block before hashing, verbatim, when the bytes are stored compressed or re-encoded. The token is an HTTP content-coding (for example gzip) or a publisher-named lossless re-encoding of the PAYLOAD_FORMAT bytes (for example qm-edge-matched-planes-v1, a quantized mesh whose topology is rebuilt from a descriptor). Decoding the stored bytes yields the PAYLOAD_FORMAT bytes exactly; a consumer that does not know the token refuses the block. SIZE_BYTES and DIGEST describe the stored bytes. A file of size-prefixed records may itself be stored compressed as a whole (for example gzip, named with a .gz suffix); that wrapping belongs to the file, not to the block, and is not stated here.
no setter
contentEncoding → String?
no setter
DIGEST → String?
Multihash of the block, lowercase hexadecimal, when the publisher states one independently of the CID.
no setter
hashCode → int
The hash code for this object.
no setterinherited
MEDIA_TYPE → String?
Media type of the block as the publisher serves it.
no setter
mediaType → String?
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
SIZE_BYTES → int
Length of the block in bytes, whether inline or referenced, so a consumer can budget a fetch before making it.
no setter
sizeBytes → int
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

reader → const Reader<DTTPayloadRef>