toNative method

Pointer<Void> toNative({
  1. Allocator allocator = pkgffi.malloc,
  2. bool zeroTerminate = false,
})

Creates a byte array from this Uint8List.

If zeroTerminate is true then the method will return a C pointer to a byte array that include single NUL at the end.

Implementation

ffi.Pointer<ffi.Void> toNative(
        {ffi.Allocator allocator = pkgffi.malloc, bool zeroTerminate = false}) =>
    _toNative(false, allocator, zeroTerminate);