DartAwareChars extension

Helpers to convert a Pointer<Char> into a Uint8List.

on

Methods

free() → void

Available on Pointer<Char>, provided by the DartAwareChars extension

Releases all native memory.
toDartString({int? length}) String

Available on Pointer<Char>, provided by the DartAwareChars extension

Converts the C memory representation of a string into a Dart String.
toUint8List(int length) Uint8List

Available on Pointer<Char>, provided by the DartAwareChars extension

Creates a Dart view on native memory, cast as unsigned, 8-bit integers. This method does not copy the data out of native memory.