Synchronous companion used by the local engine core.
The engine's hot path is synchronous on purpose: awaiting three nested futures per insert costs more than the insert itself. Remote backends (object stores) get a separate async engine instead of pretending to be a local file.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- lengthSync → int
-
Current logical length in bytes.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
appendSync(
Uint8List bytes) → void -
Appends
bytesat the end of the file. -
closeSync(
) → void - Releases the file handle. Subsequent operations throw StateError.
-
flushSync(
) → void - Makes previously appended bytes durable.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readAllSync(
) → Uint8List - Reads the whole file as one buffer.
-
readAtSync(
int offset, int length) → Uint8List -
Reads exactly
lengthbytes starting atoffset. -
toString(
) → String -
A string representation of this object.
inherited
-
truncateSync(
int length) → void -
Cuts the file to
lengthbytes. Must not extend. -
writeAllSync(
Uint8List bytes) → void -
Replaces the file contents with
bytes.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited