tiny.machine.CheckpointStorage
Defined in tiny.machine.
Caller-owned metadata for one durable checkpoint.
API (2)
Actions
Public operations.
init: Hands back checkpoint storage that holds nothing and is ready to be claimed once.
Fields and members
Public fields and members.
Source
Source: lib/machine/src/checkpoint/owner/state.zig:37
zig
/// Caller-owned metadata for one durable checkpoint. The external layout is/// exactly `storage_bytes` at `storage_alignment`. The caller initializes the/// storage before use. The caller keeps its address and its paired memory image/// alive with unchanged bytes for as long as a handle can be used.pub const Storage = struct { bytes: [storage_bytes]u8 align(storage_alignment), /// Hands back checkpoint storage that holds nothing and is ready to be /// claimed once. pub fn init() Storage { var result: Storage = .{ .bytes = @splat(0) }; ownerState(&result).status = std.atomic.Value(u8).init( @backingInt(Status.empty), ); return result; }};Source: lib/machine/src/root.zig:81
zig
pub const CheckpointStorage = checkpoint.Storage;Also reachable as
Audit
| Definitions | 2 |
|---|---|
| Public names | 4 |
| Members | 1 |
| Version | 26.7.0 |
| Revision | daab053ee433 |