tiny.machine.Usage
Defined in profile.capacity.
A requested value per bounded resource, held as one fixed array with a getter and a setter so a caller fills one in to have a whole set of requests checked at once.
API (3)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/machine/src/profile/capacity.zig:24
zig
/// A requested value per bounded resource, held as one fixed array with a getter/// and a setter so a caller fills one in to have a whole set of requests checked/// at once. Every value starts at zero.pub const Usage = struct { values: [std.meta.tags(Capacity).len]u32 = @splat(0), pub fn get(self: Usage, kind: Capacity) u32 { return self.values[@backingInt(kind)]; } pub fn set(self: *Usage, kind: Capacity, value: u32) void { self.values[@backingInt(kind)] = value; }};Source: lib/machine/src/root.zig:108
zig
pub const Usage = profile.Usage;Also reachable as
Audit
| Definitions | 3 |
|---|---|
| Public names | 9 |
| Members | 1 |
| Version | 26.7.0 |
| Revision | daab053ee433 |