tiny.png.DecodeCapacity
Defined in tiny.png.
API (7)
Actions
Public operations.
Fields and members
Public fields and members.
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;Also reachable as
Audit
| Definitions | 2 |
|---|---|
| Public names | 4 |
| Members | 6 |
| Version | 26.7.0 |
| Revision | daab053ee433 |