web library

Browser files backed by Blob, OPFS and IndexedDB.

Classes

BlitBatchSource
BlitCursor
Ordered sequential operations over an independent logical file position.
BlitFile
Simple random-access file facade.
BlitReadSource
A positional source. Positive-length requests may return short at EOF.
Bytes
Immutable view over [offset, offset + length) of a Uint8List.
BytesLike
BytesMut
BytesReader
BytesWriter
ReadIntoRange
ReadRange
Uint64
Exact unsigned 64-bit value.

Extensions

BytesLikeBytes on BytesLike
Converts a BytesLike implementation to a zero-copy Bytes view.
TypedDataBytes on TypedData
Converts any TypedData to a zero-copy Bytes view.

Constants

kIdbDatabaseName → const String
Default database name; shared by all logical files.
kIdbDefaultChunkSize → const int
Default IndexedDB chunk size (64 KiB).
kIdbStoreName → const String
Default object store; shared by all logical files.

Functions

openBlob(JSObject blob, {int cacheLimit = 8 << 20}) → Future<BlitFile>
Opens an immutable Web Blob/File through the simple facade.
openIndexedDb(String path, {bool create = true, bool readOnly = false, int chunkSize = web.kIdbDefaultChunkSize, String databaseName = web.kIdbDatabaseName, String storeName = web.kIdbStoreName}) → Future<BlitFile>
Opens an IndexedDB-backed file through the simple facade.