Skip to documentation
SLOP

tiny.machine.fabric.snapshot

Reference tiny.machine fabric snapshot

Defined in fabric.

API (4)

Actions

Public operations.

Types and contracts

Public types and contracts.

Values and defaults

Public values and defaults.

No direct callersNo direct callsfabricsnapshot
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/machine/src/fabric/snapshot/codec.zig:21

zig
pub fn decodeDisjoint(    reader: *std.Io.Reader,    expected_root: fabric.Root,) Error!fabric.Fabric {    var bytes: [stream_bytes]u8 = undefined;    try readExact(reader, &bytes);    var trailing: [1]u8 = undefined;    if (try reader.readSliceShort(&trailing) != 0) return error.TrailingData;    return decode.snapshot(&bytes, expected_root);}
Called byCallsNo direct callersprivate sourcelib.machine.src.fabric.snapshot.codecreadExactprivate sourcelib.machine.src.fabric.snapshot.decodesnapshotfabric.snapshotdecodeDisjoint
Static calls · unresolved targets: 0 · external targets: 1.

Source: lib/machine/src/fabric/snapshot/codec.zig:11

zig
pub fn encodeDisjoint(    value: *const fabric.Fabric,    writer: *std.Io.Writer,) Error!void {    try validateSink(value, writer);    var bytes: [stream_bytes]u8 = undefined;    try encode.snapshot(value, &bytes);    try writer.writeAll(&bytes);}
Called byCallsNo direct callersprivate sourcelib.machine.src.fabric.snapshot.codecvalidateSinkprivate sourcelib.machine.src.fabric.snapshot.encodesnapshotfabric.snapshotencodeDisjoint
Static calls · unresolved targets: 0 · external targets: 1.

Source: lib/machine/src/fabric/snapshot/schema.zig:9

zig
pub const stream_bytes: usize = 8192;

Source: lib/machine/src/fabric/snapshot/types.zig:16

zig
pub const Error = SnapshotError ||    std.Io.Reader.ShortError ||    std.Io.Writer.Error ||    fabric.Error;

Source: lib/machine/src/fabric/root.zig:5

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

Source: lib/machine/src/fabric/snapshot/root.zig

zig
const codec = @import("codec.zig");pub const Error = codec.Error;pub const decodeDisjoint = codec.decodeDisjoint;pub const encodeDisjoint = codec.encodeDisjoint;pub const stream_bytes = codec.stream_bytes;

Audit

Definitions5
Public names5
Members0
Version26.7.0
Revisiondaab053ee433