def png.header

gralha-png-decode@0.1.0.1 · png.bend:17

import gralha-png-decode@0.1.0.1/png.bend as Png
import Base
import gralha-bytes@0.1.0.1/bytes.bend as Bin

17def png.header(+src: Bin.Bytes, +at: U32) -> PNGInfo:
18  PNGInfo{Bin.bytes.be(src, at, 4n, 0), Bin.bytes.be(src, (at + 4 : U32), 4n, 0), Bin.bytes.get(src, (at + 8 : U32)), Bin.bytes.get(src, (at + 9 : U32)), Bin.bytes.get(src, (at + 12 : U32)), Bin.bytes.empty(), Bin.bytes.empty(), Bin.bytes.empty(), U32.is_eq(Bin.bytes.get(src, (at + 10 : U32)), 0) && U32.is_eq(Bin.bytes.get(src, (at + 11 : U32)), 0)}

Uses (9)

Used by (1)