type ByteTree

gralha-bytes@0.1.0.1 · bytes.bend:5

import gralha-bytes@0.1.0.1/bytes.bend as Bytes
import Base

5# A Bytes is a persistent byte buffer: a balanced tree over a power-of-two capacity.
6# A flat leaf is one value per index (decoders keep whole words in a Bytes, and
7# a flat above the leaf level is a uniform run); a word leaf packs four bytes
8# little-endian, which is how the file effect builds a tree with a quarter of
9# the nodes and two levels fewer to descend. Each leaf carries its own reading.
10type ByteTree is Data:
11  ByteFlat{value: U32}
12  ByteWord{value: U32}
13  ByteNode{left: ByteTree, right: ByteTree}

Uses (1)

Used by (8)