sparse-chunk-store
populate and query a chunk store with sparse blocks
example
put
var sparse =var fdstore =var sp =var n = Numberprocessargv2var buf =sp
get
var sparse =var fdstore =var sp =var n = Numberprocessargv2sp
api
var sparse =
var sp = sparse(size, store, opts)
var sp = sparse(store, opts)
Return a sparse chunk store sp
from a non-sparse chunk store store
.
If store.size
is defined, size
can be omitted as an explicit parameter.
Set opts.cache
to true
to buffer index tables in memory for a speed boost.
sp.get(index, opts={}, cb)
Read the block data at index
as cb(err, buf)
.
sp.put(index, opts={}, cb)
Write block data at index
.
install
npm install sparse-chunk-store
license
MIT