UNPKG

netcdf4-wasm

Version:

NetCDF4 library compiled to WebAssembly with TypeScript bindings

15 lines 795 B
"use strict"; // Lazy file reading - core types // // A LazyReader exposes a file as a size plus a synchronous range-read. It is the // abstraction NetCDF/HDF5 ultimately need: their C code issues seek+read syscalls // that, in WebAssembly, dispatch to an Emscripten virtual-filesystem `read` op. // By backing that op with a LazyReader we only ever pull the bytes actually // requested instead of loading the whole file into memory. // // `read` MUST be synchronous because libc `read()` is synchronous. In the browser // that means a LazyReader can only do real I/O inside a Web Worker (where // FileReaderSync / synchronous XHR are available); in Node `fs.readSync` is // synchronous everywhere. Object.defineProperty(exports, "__esModule", { value: true }); //# sourceMappingURL=types.js.map