Operation.encode.put.sized: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/coordinator/Operation.bend as Operation Lines 308-316 of mylsm-lsm-store@0.6.0.1/src/coordinator/Operation.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Operation.bend&start_line=308&end_line=316 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes def encode.put.sized( key_pair: Bytes.Bytes & U32, value_pair: Bytes.Bytes & U32 ) -> Bytes.Bytes: match key_pair: case (key, key_length): match value_pair: case (value, value_length): Bytes.concat([u32.bytes(key_length), u32.bytes(value_length), key, value]) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=concat https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Operation.bend&name=u32.bytes