A zero-copy mapped window over a file.
Properties
- bytes → Uint8List
-
Zero-copy mutable view over the window.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isClosed → bool
-
no setter
- isWritable → bool
-
Whether this mapping was created writable (
map(writable: true)).no setter - length → int
-
Length of this window in bytes.
no setter
- offset → int
-
File offset of this window (not necessarily page-aligned; the backend
hides the alignment delta).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → void - Unmaps this window; idempotent.
-
discard(
{int offset = 0, int? length}) → void -
Hints the OS to drop
[offset, offset + length)from the working set. -
flush(
) → void - Flushes dirty pages of this window to the OS.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prefetch(
{int offset = 0, int? length}) → void -
Hints the OS to page in
[offset, offset + length)ahead of use. -
toString(
) → String -
A string representation of this object.
inherited
-
zeroize(
) → void - Overwrites this window with zeros using a native memset.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited