native_buffers library

VM-only initialized native-owned storage and guarded FlatBuffers builders.

Classes

NativeBufferAllocator
Resolves the complete owned-buffer ABI; older libraries fail explicitly.
NativeBufferBuilder
Writes initialized native memory without exposing mutable typed-data views.
NativeBufferToken
Native integration output from ct_external_buffer_register. Publish this initialized structure to exactly one Dart consumer. Its handle is a resource reference; copying/forging the fields does not retain it.
NativeBufferTransport
A native ownership operation failed. Negative codes match the native ABI. Optional VM-only capability of the native RawSocket/WebSocket transports.
NativeFlatBufferBuilder
Implements the pinned Builder API through guarded composition, including model callbacks. No raw allocator or writable buffer escapes this facade.
NativeFlatBufferFrame
An immutable frame retaining each original allocation. It has no implicit contiguous bytes getter. Retained frames can be reused for fan-out.
NativeFrameTransport
Optional VM-only support for immutable segmented FlatBuffers frames.
NativeOwnedBuffer
Frozen bytes with an independently retainable native allocation owner.
NativeSegmentedBufferTransport
Optional native submission of already encoded CBOR/MessagePack/JSON frames. FlatBuffers transports use NativeFrameTransport to validate their profile.
NativeWriteReceipt
Observes local native writing, independently of payload release or peer ACK. Explicit disposal returns bounded receipt capacity and does not cancel a send.

Exceptions / Errors

NativeBufferException