Liking cljdoc? Tell your friends :D

vaelii.impl.disk.mmap

Maps index-image sections through java.lang.foreign.Arena (JDK 22+), so snapshot-close! unmaps them when the index state is dropped. The sections are little-endian int and long columns, read through the ByteBuffer asByteBuffer returns. The Arena is shared: the trie and the roots map two sections of one image, and both install one close-once release of it (index-snapshot/release-once). See docs/storage.md.

Maps index-image sections through `java.lang.foreign.Arena` (JDK 22+), so
`snapshot-close!` unmaps them when the index state is dropped.  The sections are
little-endian `int` and `long` columns, read through the `ByteBuffer` `asByteBuffer`
returns.  The `Arena` is shared: the trie and the roots map two sections of one image,
and both install one close-once release of it (`index-snapshot/release-once`).  See
docs/storage.md.
raw docstring

map-intsclj

(map-ints ch off n arena)

Map n little-endian ints at byte off of ch under arena, as an IntBuffer.

Map `n` little-endian ints at byte `off` of `ch` under `arena`, as an `IntBuffer`.
sourceraw docstring

map-longsclj

(map-longs ch off n arena)

Map n little-endian longs at byte off of ch under arena, as a LongBuffer.

Map `n` little-endian longs at byte `off` of `ch` under `arena`, as a `LongBuffer`.
sourceraw docstring

shared-arenaclj

(shared-arena)

An Arena whose segments stay alive until close, from any thread.

An `Arena` whose segments stay alive until `close`, from any thread.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close