diff options
Diffstat (limited to 'src/walk.zig')
| -rw-r--r-- | src/walk.zig | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/walk.zig b/src/walk.zig index ce097c0e..304fc5aa 100644 --- a/src/walk.zig +++ b/src/walk.zig @@ -1,7 +1,9 @@ //! The reflective walk over the core's state: one comptime `@typeInfo` walk //! that hashes a session into a digest (the replay harness compares two), -//! and that the complete dump and the rollback copy are to walk the same -//! way (docs/next-daemon.md). +//! encodes values for the tape, and dumps a session for another build to +//! load by name (`Dump`, `Load`: Restore, -l, the store, a handover, and +//! the join of phase 5). The rollback copy is to walk the same way +//! (docs/next-daemon.md). //! //! Values, never addresses: a pointer is followed to what it points at, a //! slice is its elements, an ArrayList its items, a hash map its entries in @@ -19,10 +21,13 @@ //! .authority = .{ "host" }, //! // A field written only as far as another says: hashed that far. //! .len = .{ .{ "jumps", "njumps" } }, +//! // What a field holds is made with another allocator on a load. +//! .alloc = .{ .{ "image", "image" } }, //! }; //! -//! None of the three kinds is in a digest. A type with a `pub fn -//! digest(*const T, *Hasher) void` of its own hashes itself. +//! None of the three kinds is in a digest or a dump. A type with a `pub fn +//! digest(*const T, *Hasher) void` of its own hashes itself; one with +//! `dumpWrite`, `dumpRead` (and `dumpFree`) dumps itself as bytes. const std = @import("std"); pub const Hasher = std.hash.Wyhash; |
