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.
(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`.
(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`.
(shared-arena)An Arena whose segments stay alive until close, from any thread.
An `Arena` whose segments stay alive until `close`, from any thread.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |