lib/ui/src/tree/root.zig

daab053ee43316e1809a84551d573ddd1e5bf3d2

 1 //! Retained tree namespace whose `Store` retains one accepted tree in one of two envelope blocks.
 2 //!
 3 //! `admit` is the admission survey rejecting before any retained byte changes.
 4 //! `bind` returns a `View` over the buffer whose accessors copy no table data.
 5 //! `readHeader` copies only the 152 byte header.
 6 
 7 const capacity = @import("capacity.zig");
 8 const map = @import("map.zig");
 9 const splice = @import("splice.zig");
10 const store = @import("store.zig");
11 const survey = @import("survey.zig");
12 const view = @import("view.zig");
13 const walk = @import("walk.zig");
14 
15 pub const Capacity = capacity.Capacity;
16 pub const Limits = capacity.Limits;
17 pub const CapacityError = capacity.Error;
18 pub const arrays = capacity.arrays;
19 pub const slotCount = capacity.slotCount;
20 
21 pub const Map = map.Map;
22 pub const map_absent = map.absent;
23 
24 pub const View = view.View;
25 pub const prior_dirty = splice.prior_dirty;
26 pub const prior_absent = splice.prior_absent;
27 pub const BindError = view.BindError;
28 pub const bind = view.bind;
29 pub const readHeader = view.readHeader;
30 
31 pub const Error = survey.Error;
32 pub const Report = survey.Report;
33 pub const Retained = survey.Retained;
34 pub const Spliced = survey.Spliced;
35 pub const admit = survey.survey;
36 
37 pub const Scratch = splice.Scratch;
38 pub const Outcome = splice.Outcome;
39 pub const graft = splice.splice;
40 
41 pub const Accepted = store.Accepted;
42 pub const Store = store.Store;
43 pub const storage_alignment = store.storage_alignment;
44 
45 pub const Children = walk.Children;
46 pub const children = walk.children;
47 pub const subtree = walk.subtree;
48 pub const childCount = walk.childCount;