Skip to documentation
SLOP

tiny.png.Decoding

Reference tiny.png Decoding

Defined in tiny.png.

API (6)

Actions

Public operations.

Fields and members

Public fields and members.

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

Source

Source: lib/png/src/decode/decoder.zig:17

zig
pub const Decoding = struct {    storage: Storage,    image: Image,    pub fn init(allocator: std.mem.Allocator, bytes: []const u8) Error!Decoding {        return initWithBounds(allocator, bytes, try Bounds.exact(bytes));    }    pub fn initWithBounds(        allocator: std.mem.Allocator,        bytes: []const u8,        bounds: Bounds,    ) Error!Decoding {        var storage = try Storage.init(allocator, .{ .bytes = bytes, .bounds = bounds });        errdefer storage.deinit(allocator);        storage.activate();        return .{ .image = try imageFromBytes(&storage, bytes), .storage = storage };    }    pub fn status(self: *const Decoding) Status {        return self.storage.status();    }    pub fn deinit(self: *Decoding, allocator: std.mem.Allocator) void {        self.storage.reset();        self.storage.deinit(allocator);        self.* = undefined;    }};

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

zig
pub const Decoding = decode.Decoding;
Called byCallsNo direct callstest sourcelib.png.src.decode.testtest: decode expands RGB PNG rows to ...test sourcelib.png.src.decode.testtest: decode expands an indexed PNG t...test sourcelib.png.src.decode.testtest: decode expands grayscale alpha ...test sourcelib.png.src.decode.testtest: decode honors palette transpare...test sourcelib.png.src.decode.testtest: decode reads a real indexed PNG...+5 moreDecodingdeinit
Static calls · unresolved targets: 2 · external targets: 0.
Called byCallstest sourcelib.png.src.decode.testtest: decode expands RGB PNG rows to ...test sourcelib.png.src.decode.testtest: decode expands an indexed PNG t...test sourcelib.png.src.decode.testtest: decode expands grayscale alpha ...test sourcelib.png.src.decode.testtest: decode honors palette transpare...test sourcelib.png.src.decode.testtest: decode reads a real indexed PNG...+5 moreDecodinginitWithBoundsDecodinginit
Static calls · unresolved targets: 1 · external targets: 0.
Called byCallsDecodinginittest sourcelib.png.src.decode.testtest: bounded decoding rejects excess...tiny.pngimageFromBytesDecodinginitWithBounds
Static calls · unresolved targets: 3 · external targets: 0.
Called byCallsNo direct callstest sourcelib.png.src.decode.testtest: decoding allocation baselineDecodingstatus
Static calls · unresolved targets: 1 · external targets: 0.

Also reachable as

decode.Decoding.

Complete caller list for Decoding.deinit

10 direct callers.

Complete caller list for Decoding.init

10 direct callers.

Audit

Definitions5
Public names10
Members2
Version26.7.0
Revisiondaab053ee433