HandoffHandle class final

A declared HandoffBuffer - what BufferDescriptor.hasHandoff hands back and the declarer keeps in a late final field.

Same discipline as BufferHandle (the typed-handle rule): no name, no registry, and both copies produce the same handles in the same order because both run the same describeBuffers passes.

Properties

buffer HandoffBuffer
This copy's view of the buffer. Both copies address the same native memory: the owning copy allocates it before the spawn and the Pointers inside cross at the same addresses, so there is nothing to announce.
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
Position in the declaration order of handoff buffers specifically - a separate sequence from BufferHandle.index, since they are separate lists.
final
isConnected bool
Whether this copy has a live view yet. False between declaration and the end of Game.start(), and again after Game.stop().
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slotBytes int
Bytes per slot, as declared. Known on both copies before any memory exists.
final
tryBuffer HandoffBuffer?
buffer, but null instead of throwing - for a caller happy to sit out until bring-up completes.
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.
inherited

Operators

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