pointerAt method

Pointer<Uint8>? pointerAt(
  1. int offset
)

Returns the native pointer at offset, or null for Dart-owned bytes.

Implementation

ffi.Pointer<ffi.Uint8>? pointerAt(int offset) {
  RangeError.checkValidIndex(offset, bytes, 'offset');
  final backing = _backing;
  if (backing == null) return null;
  return backing.pointer + _offset + offset;
}