Skip to documentation
SLOP

tiny.content

Reference tiny.content

Overview · API · Code relationships · Verification · Audit

Overview

Content-addressed storage for immutable bytes names a piece of content by what it hashes to. The authority to read, a Reader, and the authority to write, a Sink, are separate values, so a caller can hold one without the other, while pairing the two for a caller trusted with both forms a Store.

The caller supplies the limits, and every store is built against a capacity derived from them, which fixes how many objects it admits, how large one object may be, and how many bytes it retains. One content identifier (a hash algorithm tag and a 32-byte digest) paired with the exact byte length of the content forms a reference. Each capability reaches the backend behind it through an opaque context pointer and a function table, its provider. Both capabilities check a reference against that capacity before the provider is called at all. A capability checks what its provider returns: a read rehashes the bytes and compares the length before it hands them back, while a publication verifies the bytes against the reference first.

Listing, deleting, and naming content by path are absent from both capabilities, so holding one grants exactly one operation. The memory namespace holds the in-memory provider, which works entirely from caller-owned buffers.

Definitions

Types and contracts

Public types and contracts.

Namespaces

Public namespaces.

Values and defaults

Public values and defaults.

Code relationships

Direct static dependencies extracted from parsed source by semantic graph analysis.

Uses: None
Used by: alloc_phase

Verification

No verification records are cataloged for this module in this build.

Audit

EvidenceValue
Sourcelib/content/src/root.zig
Definitions9 of 17 documented
Members0 of 0 documented
Public names17 API, 44 indexed
Version26.7.0
Revisiondaab053ee433