SstFile.blocks.measure.entry: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/SstFile.bend as SstFile Lines 264-272 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=264&end_line=272 import Base import mylsm-lsm-store@0.6.0.1/src/MemTable.bend as MemTable import mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend as StorageBytes def blocks.measure.entry(entry: MemTable.Entry, +size: U32) -> BlockMeasure: match entry: case MemTable.Entry{key, value}: match value: case None{}: blocks.measure.delete(StorageBytes.from_string.size.begin(key), size) case Some{text}: blocks.measure.put(StorageBytes.from_string.size.begin(key), StorageBytes.from_string.size.begin(text), size) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/MemTable.bend&name=Entry https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/SstFile.bend&name=BlockMeasure https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/SstFile.bend&name=blocks.measure.delete https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/SstFile.bend&name=blocks.measure.put https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend&name=from_string.size.begin