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
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.