Optional
opts: MMapOptionsOpen a file as a live-updating Uint8Array
without copying memory
This uses the mmap()
syscall under the hood.
This API inherently has some rough edges:
SystemError
with EINVAL
To close the file, set the array to null
and it will be garbage collected eventually.
Optional
opts: MMapOptionsGenerated using TypeDoc
Open a file as a live-updating
Uint8Array
without copying memoryThis uses the
mmap()
syscall under the hood.This API inherently has some rough edges:
SystemError
withEINVAL
To close the file, set the array to
null
and it will be garbage collected eventually.