Operation.decode.payload: 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 277-297 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=277&end_line=297 import Base import mylsm-lsm-store@0.6.0.1/src/ByteWal.bend as ByteWal import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes def decode.payload( operation_code: U32, payload: Bytes.Bytes ) -> Decision: match operation_code: case 1: Decoded{Get{payload}} case 2: put.decode(payload) case 3: Decoded{Delete{payload}} case 4: empty.operation(Bytes.length(payload), Flush{}) case 5: empty.operation(Bytes.length(payload), Compact{}) case 6: empty.operation(Bytes.length(payload), Stats{}) case 8: batch.result(ByteWal.decode(payload)) case 9: empty.operation(Bytes.length(payload), SnapshotOpen{}) case 10: snapshot.get.decode(payload) case 11: snapshot.close.decode(payload) case 12: snapshot.cursor.open.decode(payload) case 13: snapshot.cursor.next.decode(payload) case 14: snapshot.cursor.close.decode(payload) case 15: snapshot.cursor.seek.decode(payload) case 16: empty.operation(Bytes.length(payload), DescribeOwner{}) case _: UnsupportedOperation{} Uses (18): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Con https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Nil 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=length https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteWal.bend&name=decode https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Operation.bend&name=Decision https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Operation.bend&name=Operation https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Operation.bend&name=batch.result https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Operation.bend&name=empty.operation https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Operation.bend&name=put.decode https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Operation.bend&name=snapshot.close.decode https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Operation.bend&name=snapshot.cursor.close.decode https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Operation.bend&name=snapshot.cursor.next.decode https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Operation.bend&name=snapshot.cursor.open.decode https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Operation.bend&name=snapshot.cursor.seek.decode https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Operation.bend&name=snapshot.get.decode