Skip to documentation
SLOP

tiny.preserves.@"packed"

Reference tiny.preserves @"packed"

Defined in tiny.preserves.

A binary encoding of values: a writer that turns a value into bytes, and a reader that turns bytes back into one value under limits the caller sets.

API (6)

Actions

Public operations.

Types and contracts

Public types and contracts.

Namespaces

Public namespaces.

No direct callersNo direct callstiny.preserves@"packed"
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/preserves/src/packed/root.zig

zig
//! A binary encoding of values: a writer that turns a value into bytes, and a reader that turns//! bytes back into one value under limits the caller sets.//!//! A caller that stores, sends or hashes values needs every equal value to encode to the same//! bytes, and needs to decode bytes from an untrusted peer within bounds on memory and recursion.//! For values free of embedded values, discards, captures, binds and rest patterns, writing then//! reading returns an equal value, and writing the result again returns the same bytes.//!//! The encoding is the binary syntax of the [Preserves](https://preserves.dev/) data language,//! which the package keeps. The writer is `encode` and the reader is `decode`, and the namespace//! also holds their files and the tag bytes (`Tag`).pub const constants = @import("constants.zig");pub const reader = @import("reader.zig");pub const writer = @import("writer.zig");pub const Tag = constants.Tag;pub const decode = reader.decode;pub const encode = writer.encode;

Source: lib/preserves/src/root.zig:118

zig
pub const @"packed" = @import("packed/root.zig");

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433