map abstract method

MappedRegion map({
  1. int offset = 0,
  2. int? length,
  3. bool writable = true,
})

Maps [offset, offset + length).

length defaults to length - offset. The offset need not be page-aligned; the backend aligns it internally. The file must be large enough; truncate first to extend.

Implementation

MappedRegion map({int offset = 0, int? length, bool writable = true});