readIntoNative method

Future<int> readIntoNative(
  1. int offset,
  2. NativeBuffer buffer
)

Reads into a caller-owned native buffer without allocating a Dart buffer.

Implementation

Future<int> readIntoNative(int offset, NativeBuffer buffer) =>
    readAt(offset, buffer.readBuf());