def eocd.of

bend-kit-archive@0.5.1.0 · archive.bend:87

import bend-kit-archive@0.5.1.0/archive.bend as Archive
import Base

87# End of central directory (APPNOTE 4.3.16): the last signature whose comment length reaches the end exactly.
88def eocd.of(r: Array<U32> & List<&2, U32>, +len: U32, +p: U32) -> Array<U32> & Bool:
89  (a, +x) = r
90  (a, Bool.and(U32.is_eq(u32(x, 0), 101010256), U32.is_eq(u16(x, 20), (len - p - 22 : U32))))

Uses (11)

Used by (1)