DartHeapPointer class

Provides a Dart heap counterpart to Pointer from FFI.

This is used as the pointer implementation for DartCodecBuffers and is useful when implementing codec algorithms in pure Dart with no FFI deps.

Constructors

DartHeapPointer(Uint8List _bytes, {int offset = 0})
Construct a pointer on the Uint8List bytes with a default offset of 0.

Properties

hashCode int
The hash code for this object.
no setterinherited
offset int
Offset of this pointer within the data.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

asTypedList(int amount) Uint8List
Return a typed list view on the byte data in the range offset..(offset + amount).
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
operator [](int index) int
Get a byte in the buffer relative to the current offset position.
operator []=(int index, int value) → void
Set a byte in the buffer relative to the current offset position.