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.
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);}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);}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
| Definitions | 5 |
|---|---|
| Public names | 5 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |