UNPKG

netcdf4-wasm

Version:

NetCDF4 library compiled to WebAssembly with TypeScript bindings

30 lines 1.1 kB
export interface LazyReader { /** Total size of the underlying file in bytes. */ readonly size: number; /** * Read `length` bytes starting at `offset`. Reads are clamped to the file * bounds: a read at or past EOF returns an empty array, and a read that * straddles EOF returns only the available bytes. Never throws on a short * read. */ read(offset: number, length: number): Uint8Array; /** Release any underlying handle (file descriptor, etc.). */ close(): void; } export interface ReadStats { /** Block reads served from cache. */ hits: number; /** Block reads that hit the underlying reader. */ misses: number; /** Bytes actually fetched from the underlying reader. */ bytesFetched: number; /** Blocks currently held in the cache. */ cachedBlocks: number; } export interface LazyOptions { /** Size of each cached block in bytes (default 64 KiB). */ blockSize?: number; /** Maximum number of blocks held in the LRU cache (default 256). */ maxCacheBlocks?: number; } //# sourceMappingURL=types.d.ts.map