tiny.wayland.ProcessEnvironmentCapacity
Defined in connection.
API (7)
Actions
Public operations.
Fields and members
Public fields and members.
generation_bytesgeneration_entry_countgeneration_owner_bytesretained_entry_countsource_entry_counttotal_static_bytes
Source
Source: lib/wayland/src/connection.zig:28
zig
pub const ProcessEnvironmentCapacity = struct { retained_entry_count: usize, source_entry_count: usize, generation_entry_count: usize, generation_bytes: usize, generation_owner_bytes: usize, total_static_bytes: usize, pub fn derive(limits: ProcessEnvironmentLimits) ProcessEnvironmentCapacityError!ProcessEnvironmentCapacity { const source_entry_count = std.math.add( usize, limits.retained_entry_count, 1, ) catch return error.CapacityOverflow; const generation_bytes = std.math.mul( usize, source_entry_count, @sizeOf(?[*:0]const u8), ) catch return error.CapacityOverflow; const generation_owner_bytes = @sizeOf(sys.env.GenerationStorage); const total_static_bytes = std.math.add( usize, generation_bytes, generation_owner_bytes, ) catch return error.CapacityOverflow; return .{ .retained_entry_count = limits.retained_entry_count, .source_entry_count = source_entry_count, .generation_entry_count = source_entry_count, .generation_bytes = generation_bytes, .generation_owner_bytes = generation_owner_bytes, .total_static_bytes = total_static_bytes, }; }};Source: lib/wayland/src/root.zig:86
zig
pub const ProcessEnvironmentCapacity = connection.ProcessEnvironmentCapacity;Audit
| Definitions | 2 |
|---|---|
| Public names | 4 |
| Members | 6 |
| Version | 26.7.0 |
| Revision | daab053ee433 |