Protocol.decode.words.payload_length.copies: 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 349-363 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=349&end_line=363 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes def decode.words.payload_length.copies( input: Bytes.Bytes, +size: U32, +version: U32, +generation: U32, +request_id: U32, +operation: U32, copies: U32 & U32 & U32, max_payload_bytes: Nat ) -> FrameDecision: match copies: case (frame_length, exact_length, bounded_length): decode.words.payload_length.admitted(input, size, version, generation, request_id, operation, frame_length, exact_length, U32.is_le(bounded_length, U32.from_nat(max_payload_bytes))) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.from_nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_le 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.admitted