ByteView class final

A read-only, zero-copy byte range backed by a record segment.

A view is valid only while its associated record remains allocated. It is intentionally not a Uint8List, so callers cannot bypass write tracking by mutating store memory through a reader.

Properties

hashCode FieldMask
The hash code for this object.
no setterinherited
length FieldMask
The byte count in this view.
final
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
toString() String
A string representation of this object.
inherited
toUint8List() Uint8List
Copies this view to an independently owned byte list.

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) int
Returns the byte at index.