Protocol.decode.words.payload_length.admitted: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/coordinator/Protocol.bend as Protocol Lines 330-347 of mylsm-lsm-store@0.6.0.1/src/coordinator/Protocol.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Protocol.bend&start_line=330&end_line=347 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes # Rejects oversized declarations before computing or comparing frame offsets. def decode.words.payload_length.admitted( input: Bytes.Bytes, +size: U32, +version: U32, +generation: U32, +request_id: U32, +operation: U32, +payload_length: U32, exact_length: U32, within_limit: Bool ) -> FrameDecision: match within_limit: case False{}: FrameTooLarge{} case True{}: decode.words.payload_length.expected(input, size, version, generation, request_id, operation, payload_length, Nat.add(24n, U32.to_nat(exact_length)), True{}) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.to_nat https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Protocol.bend&name=FrameDecision https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Protocol.bend&name=decode.words.payload_length.expected