Skip to documentation
SLOP

tiny.ui.Header

Reference tiny.ui Header

Defined in tiny.ui.

Header is the 152 byte prefix of every publish buffer.

API (20)

Fields and members

Public fields and members.

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

Source

Source: lib/ui/src/abi/envelope.zig:18

zig
/// `Header` is the 152 byte prefix of every publish buffer./// Each `Span` field locates one table in the same buffer.pub const Header = extern struct {    magic: u32 = magic,    abi_version: u32 = abi_version,    /// `Header.buffer_bytes` must equal the length of the slice passed to publish,    /// or the publish is rejected with `error.BufferLengthMismatch`.    buffer_bytes: u32 = 0,    /// `Header.node_bytes` must equal the size of `Node` in this build, or the publish is    /// rejected with `error.NodeSizeMismatch`.    node_bytes: u32 = @sizeOf(Node),    /// A publish whose header revision equals the retained revision is accepted after reading    /// only the header and dirties nothing.    revision: u64 = 0,    /// A node flagged `retained` is admitted only when this field equals the revision of the    /// tree the store holds, otherwise `error.StaleRetainedSubtree`.    base_revision: u64 = 0,    viewport: Rect = .{},    /// `Header.root_font_size` is layout units per rem.    root_font_size: f32 = 0,    /// `Header.unit_scale` is informational and never a cascade input.    unit_scale: f32 = 0,    nodes: Span = .{},    declarations: Span = .{},    classes: Span = .{},    texts: Span = .{},    runs: Span = .{},    relations: Span = .{},    atoms: Span = .{},    strings: Span = .{},    solved_roots: Span = .{},    solved_rects: Span = .{},    reserved: [2]u64 = .{ 0, 0 },};

Source: lib/ui/src/root.zig:18

zig
pub const Header = abi.Header;

Also reachable as

abi.Header.

Audit

Definitions1
Public names2
Members20
Version26.7.0
Revisiondaab053ee433