MappedFile class abstract interface

A read-only mapping of a whole file.

The bytes stay valid until closeSync; segments are immutable, so a mapped segment can be dropped in as a Uint8List without copying and without changing anything above the I/O layer.

Properties

bytes → Uint8List
Zero-copy view of the mapped bytes.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

closeSync() → void
Unmaps the file and releases the handle.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited