NativeByteView class final

Internal byte view that retains the native allocation backing a zero-copy FFI result and can derive native pointers for contiguous slices.

The public protocol APIs continue to accept Uint8List. This type only carries provenance while the infrastructure parser still needs it.

Constructors

NativeByteView.fromBytes(Uint8List bytes)
factory

Properties

bytes → Uint8List
final
hashCode → int
The hash code for this object.
no setterinherited
hasNativeBacking → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pointerAt(int offset) → Pointer<Uint8>?
Returns the native pointer at offset, or null for Dart-owned bytes.
slice(int start, int end) → NativeByteView
Returns a slice retaining the original native allocation, when present.
toString() → String
A string representation of this object.
inherited

Operators

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