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.
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
Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 2 |
| Version | 26.7.0 |
| Revision | daab053ee433 |