Skip to documentation
SLOP

tiny.css.Capacity

Reference tiny.css Capacity

Defined in sheet.

The aligned byte layout one Limits produces.

API (4)

Actions

Public operations.

Fields and members

Public fields and members.

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

Source

Source: lib/css/src/sheet.zig:163

zig
/// The aligned byte layout one `Limits` produces.pub const Capacity = struct {    limits: Limits = .{},    offsets: [array_count]usize = @splat(0),    total_bytes: usize = 0,    /// Lays the arrays out in declaration order, failing closed on overflow.    pub fn derive(limits: Limits) error{CapacityOverflow}!Capacity {        var out = Capacity{ .limits = limits };        var cursor: usize = 0;        inline for (arrays, 0..) |entry, index| {            const region = try placed(entry.Element, cursor, @field(limits, entry.name));            out.offsets[index] = region.start;            cursor = region.end;        }        out.total_bytes = cursor;        return out;    }};

Source: lib/css/src/root.zig:47

zig
pub const Capacity = sheet.Capacity;
Called byCallstest sourcelib.css.src.sheettest: CSS storage capacity matches an...private sourcelib.css.src.sheetplacedCapacityderive
Static calls · unresolved targets: 0 · external targets: 0.

Audit

Definitions2
Public names4
Members3
Version26.7.0
Revisiondaab053ee433