Skip to documentation
SLOP

tiny.png.DecodeCapacity

Reference tiny.png DecodeCapacity

Defined in tiny.png.

API (7)

Actions

Public operations.

Fields and members

Public fields and members.

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

Source

Source: lib/png/src/decode/capacity.zig:15

zig
pub const Capacity = struct {    plan: plan_mod.Plan,    window_offset: usize,    prior_offset: usize,    current_offset: usize,    output_offset: usize,    storage_bytes: usize,    pub fn derive(limits: Limits) DeriveError!Capacity {        const plan = try plan_mod.Plan.inspect(limits.bytes, limits.bounds);        const prior_offset = flate.max_window_len;        const current_offset = try model.added(prior_offset, plan.source_row_bytes);        const output_offset = try model.added(current_offset, plan.source_row_bytes);        return .{            .plan = plan,            .window_offset = 0,            .prior_offset = prior_offset,            .current_offset = current_offset,            .output_offset = output_offset,            .storage_bytes = try model.added(output_offset, plan.rgba8_bytes),        };    }};

Source: lib/png/src/root.zig:28

zig
pub const DecodeCapacity = decode.Capacity;
Called byCallsNo direct callstest sourcelib.png.src.decode.capacitytest: PNG decode capacity matches an ...DecodeCapacityderive
Static calls · unresolved targets: 0 · external targets: 2.

Also reachable as

decode.Capacity.

Audit

Definitions2
Public names4
Members6
Version26.7.0
Revisiondaab053ee433