Zlib.ch.ok: def of bend-kit-zlib@0.5.1.0 Import: import bend-kit-zlib@0.5.1.0/zlib.bend as Zlib Lines 893-895 of bend-kit-zlib@0.5.1.0/zlib.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-zlib@0.5.1.0/zlib.bend&start_line=893&end_line=895 import Base # RFC 1951 ยง3.2.5: a distance is at most 32768. def ch.ok(+i: U32, +c: U32, +max: U32, +blen: U32) -> Bool: Bool.and(Bool.and(U32.is_lt(0, c), U32.is_lt((i - c : U32), 32768)), U32.is_lt(blen, max)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_lt https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.sub