ByteManifest.body: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/ByteManifest.bend as ByteManifest Lines 95-108 of mylsm-lsm-store@0.6.0.1/src/ByteManifest.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteManifest.bend&start_line=95&end_line=108 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes # Builds the checksummed body for one manifest value. def body(value: ManifestValue) -> Bytes.Bytes: match value: case Empty{}: Bytes.concat([magic(), u32.bytes(4), u32.bytes(1), u32.bytes(1), u32.bytes(0)]) case HasSst{}: Bytes.concat([magic(), u32.bytes(4), u32.bytes(1), u32.bytes(1), u32.bytes(1), u32.bytes(3), sst.name()]) case GenerationEmpty{}: Bytes.concat([magic(), u32.bytes(5), u32.bytes(1), u32.bytes(1), u32.bytes(0)]) case GenerationSst{file_id}: Bytes.concat([magic(), u32.bytes(5), u32.bytes(1), u32.bytes(1), u32.bytes(1), u32.bytes(file_id)]) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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/ByteManifest.bend&name=ManifestValue https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteManifest.bend&name=magic https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteManifest.bend&name=sst.name https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteManifest.bend&name=u32.bytes