Skip to documentation
SLOP

tiny.wayland.ProcessEnvironmentCapacity

Reference tiny.wayland ProcessEnvironmentCapacity

Defined in connection.

API (7)

Actions

Public operations.

Fields and members

Public fields and members.

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

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;
Called byCallsNo direct callstest sourcelib.wayland.src.connectiontest: process environment capacity de...test sourcelib.wayland.src.connectiontest: process environment capacity re...ProcessEnvironmentCapacityderive
Static calls · unresolved targets: 0 · external targets: 0.

Audit

Definitions2
Public names4
Members6
Version26.7.0
Revisiondaab053ee433