writeAt method

Future<int> writeAt(
  1. int offset,
  2. IoSlice src, {
  3. CancelToken? cancel,
})

Implementation

Future<int> writeAt(int offset, IoSlice src, {CancelToken? cancel}) async {
  _checkWritable();
  cancel?.throwIfCancelled(path: path);
  return _track(
    _guard(
      'writeAt',
      () =>
          _backend.writeAt(offset, src.bytes, start: src.start, end: src.end),
    ),
  );
}