Skip to documentation
SLOP

tiny.ui.Span

Reference tiny.ui Span

Defined in tiny.ui.

bind checks the ten header table spans and rejects the buffer with the first check that fails.

API (2)

Fields and members

Public fields and members.

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

Source

Source: lib/ui/src/abi/scalar.zig:8

zig
/// `bind` checks the ten header table spans and rejects the buffer with the first check that fails./// A span whose `count` is 0 is not checked, whatever its `offset`. An `offset` below the 152 byte/// header is rejected with `error.SpanOutOfBounds`. An `offset` that is not a multiple of the/// element alignment is rejected with `error.SpanMisaligned`. A span whose byte length overflows/// or whose end passes the buffer is rejected with `error.SpanOutOfBounds`.pub const Span = extern struct {    /// `Span.offset` is a byte offset from the start of the buffer.    offset: u32 = 0,    /// `Span.count` is a number of elements, not bytes.    count: u32 = 0,};

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

zig
pub const Span = abi.Span;

Also reachable as

abi.Span.

Audit

Definitions1
Public names2
Members2
Version26.7.0
Revisiondaab053ee433