readAtPointer method

int readAtPointer(
  1. int offset,
  2. Pointer<Uint8> dst,
  3. int length
)

Reads into caller-owned native memory, bypassing the typed-data copy.

This is the hot-path variant for framework/buffer-pool callers. The destination must stay valid for the duration of the call and, for direct I/O, be 4 KiB aligned. The transparent mmap cache is bypassed.

Implementation

int readAtPointer(int offset, Pointer<Uint8> dst, int length) =>
    throw UnsupportedError('readAtPointer is not supported on this backend');