SstFile.record.key: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/SstFile.bend as SstFile Lines 175-185 of mylsm-lsm-store@0.6.0.1/src/SstFile.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/SstFile.bend&start_line=175&end_line=185 import Base import mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend as StorageBytes import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes def record.key( key_result: Result<&1, &1, U32 & String, Bytes.Bytes>, val: Maybe<&2, String> ) -> Result<&1, &1, Error, Bytes.Bytes>: match key_result val: case Fail{_} _: Fail{TooLarge{}} case Done{key_bytes} None{}: record.key.delete(Bytes.length(key_bytes)) case Done{key_bytes} Some{value}: record.value(key_bytes, StorageBytes.from_string(value)) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String 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=length https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/SstFile.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/SstFile.bend&name=record.key.delete https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/SstFile.bend&name=record.value https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend&name=from_string