Liking cljdoc? Tell your friends :D

com.blockether.vis.internal.session.snapshot

The .vissnap session snapshot file (#405). A program reads its JSON manifest without a JVM; only the engine reads the payload.

Layout, format version 1:

magic 8 bytes, VISSNAP and a zero byte version 4 bytes, big-endian length 4 bytes, big-endian, the manifest length manifest UTF-8 JSON payload the Nippy-frozen rows of one session tree, Zstandard-compressed

The manifest holds the format and Vis versions, the creation time, the root session, the session tree, counts, sizes and the payload SHA-256. A decode checks the digest before it thaws the payload.

The `.vissnap` session snapshot file (#405). A program reads its JSON manifest without
a JVM; only the engine reads the payload.

Layout, format version 1:

  magic        8 bytes, `VISSNAP` and a zero byte
  version      4 bytes, big-endian
  length       4 bytes, big-endian, the manifest length
  manifest     UTF-8 JSON
  payload      the Nippy-frozen rows of one session tree, Zstandard-compressed

The manifest holds the format and Vis versions, the creation time, the root session,
the session tree, counts, sizes and the payload SHA-256. A decode checks the digest
before it thaws the payload.
raw docstring

decodeclj

(decode data)

The manifest and the session tree of snapshot data. Throws :session/invalid-snapshot for a damaged file, a digest that does not match, a value of an unknown type or a broken session tree. Throws :session/unsupported-version for a newer format and :session/snapshot-too-large past max-bytes.

The manifest and the session tree of snapshot `data`. Throws `:session/invalid-snapshot`
for a damaged file, a digest that does not match, a value of an unknown type or a broken
session tree. Throws `:session/unsupported-version` for a newer format and
`:session/snapshot-too-large` past [[max-bytes]].
sourceraw docstring

encodeclj

(encode tree {:keys [vis-version now]})

The snapshot bytes of one exported session tree. Throws :session/snapshot-too-large past max-bytes.

The snapshot bytes of one exported session `tree`. Throws `:session/snapshot-too-large`
past [[max-bytes]].
sourceraw docstring

format-versionclj

source

infoclj

(info data)

The manifest of snapshot data, without the payload.

The manifest of snapshot `data`, without the payload.
sourceraw docstring

max-bytesclj

(max-bytes)

The configured snapshot size limit in bytes, from the session_snapshot_limit setting.

The configured snapshot size limit in bytes, from the `session_snapshot_limit` setting.
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