ParallelBytesFile class final
A BytesFile that dispatches operations across a pool of worker isolates.
Properties
- activeWorkers → int
-
no setter
- direct → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isClosed → bool
-
no setter
-
length
→ Future<
int> -
Current logical length in bytes.
no setter
- lengthSync → int
-
no setter
- maxQueue → int
-
final
- maxWorkers → int
-
final
- mmapReadCacheLimit → int
-
final
- path → String
-
final
- pending → int
-
no setter
- readOnly → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsConcurrentReads → bool
-
Whether concurrent positional reads are safe.
no setter
- useIocp → bool
-
final
Methods
-
append(
Uint8List src, {int start = 0, int? end}) → Future< int> - Appends to the end.
-
close(
) → Future< void> - Closes the file; further operations throw StateError.
-
delete(
) → Future< void> - Closes and deletes the underlying file.
-
flush(
) → Future< void> - Flushes pending writes to the backing store.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
int offset, int length) → Future< Uint8List> -
Reads
lengthbytes and returns the transferred buffer (no copy into a caller buffer; the buffer is allocated by the worker and transferred). -
readAt(
int offset, Uint8List dst, {int start = 0, int? end}) → Future< int> -
Reads into
dst[start..end)atoffset. Returns bytes read (0 at EOF). -
readBatchInto(
List< ReadIntoRange> ranges) → Future<List< int> > -
readMany(
List< int> offsets, int length) → Future<List< Uint8List> > - Reads many independent ranges concurrently.
-
toString(
) → String -
A string representation of this object.
override
-
truncate(
int newLength) → Future< void> - Changes the logical length.
-
writeAt(
int offset, Uint8List src, {int start = 0, int? end}) → Future< int> -
Writes
src[start..end)atoffset. Returns bytes written. -
writeMany(
List< int> offsets, List<Uint8List> blocks) → Future<int> - Writes many independent ranges concurrently (variable block lengths).
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited