Class: FetchObject
Payload-bearing fetch object (§11.5, non-End-of-Range form).
FETCH objects carry no Object Status field; a zero-length payload signals a zero-length Normal object.
Properties
endOfRange
readonlyendOfRange:EndOfRangeKind|null
forwardingPreference
readonlyforwardingPreference:ObjectForwardingPreference
kind
readonlykind:"object"|"end_of_range"
location
readonlylocation:Location
payload
readonlypayload:Uint8Array<ArrayBufferLike> |null
properties
readonlyproperties:KeyValuePair[] |null
publisherPriority
readonlypublisherPriority:number
subgroupId
readonlysubgroupId:bigint
Accessors
groupId
Get Signature
get groupId():
bigint
Returns
bigint
objectId
Get Signature
get objectId():
bigint
Returns
bigint
Methods
nextContext()
nextContext(
prev?):FetchObjectContext
What the entry after this one is encoded against, given what this one was encoded against (prev).
After an Object, that is the Object itself. After an End of Range marker, it is the marker's Group and Object IDs, with the Subgroup ID and priority still those of the last Object before the marker, or none if no Object came before it.
Parameters
prev?
Returns
serialize()
serialize(
prev?,groupOrder?):FrozenByteBuffer
Parameters
prev?
groupOrder?
GroupOrder = GroupOrder.Original
Returns
deserialize()
staticdeserialize(buf,prev?,groupOrder?):FetchObject
Parameters
buf
prev?
groupOrder?
GroupOrder = GroupOrder.Original
Returns
FetchObject
newEndOfRange()
staticnewEndOfRange(kind,groupId,objectId):FetchObject
Parameters
kind
groupId
number | bigint
objectId
number | bigint
Returns
FetchObject
newObject()
staticnewObject(groupId,subgroupId,objectId,publisherPriority,forwardingPreference,properties,payload):FetchObject
Parameters
groupId
number | bigint
subgroupId
number | bigint
objectId
number | bigint
publisherPriority
number
forwardingPreference
properties
KeyValuePair[] | null
payload
Uint8Array
Returns
FetchObject