cloneRangeFrom method

void cloneRangeFrom(
  1. MmapFile source, {
  2. int sourceOffset = 0,
  3. int destOffset = 0,
  4. int? length,
})

Clones extents from source into this file.

Windows: FSCTL_DUPLICATE_EXTENTS_TO_FILE (same volume, aligned ranges). The default throws UnsupportedError; callers can fall back to readAt/writeAt.

Implementation

void cloneRangeFrom(
  MmapFile source, {
  int sourceOffset = 0,
  int destOffset = 0,
  int? length,
}) => throw UnsupportedError(
  'cloneRangeFrom is not supported on this platform',
);