native library

Native mappings, native buffers and worker-backed file reads.

Classes

BlitAllocator
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
MappedRegion
A zero-copy mapped window over a file.
MmapFile
A native file with random access and mmap windows.
MmapPlaceholder
A reserved address range that can be filled/replaced with mapped windows.
NativeBuffer
NativeBufferPool
Reuses native buffers by exact byte size.
NativeMmapFile
Wraps a native mmap file without exposing engine names to the simple API.
ParallelBytesFile
A BytesFile that dispatches operations across a pool of worker isolates.
ReadIntoRange
ReadRange
Uint64
Exact unsigned 64-bit value.

Extensions

AsyncFileNative on AsyncFile
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.

Functions

cloneFileSync(String source, String dest, {bool overwrite = false}) → void
Clones source to dest.
openMmapFile(String path, {bool create = true, bool readOnly = false, bool direct = false, bool largePages = false, bool mmapCache = true}) → Future<MmapFile>
Opens a native mmap file. Synchronous; run in a worker isolate for UI code.
openMmapFileSync(String path, {bool create = true, bool readOnly = false, bool direct = false, bool largePages = false, bool mmapCache = true}) → MmapFile
Synchronous open.