MemTable.payload_entries_bytes: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/MemTable.bend as MemTable Lines 49-56 of mylsm-lsm-store@0.6.0.1/src/MemTable.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/MemTable.bend&start_line=49&end_line=56 import Base import mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend as StorageBytes # Sums payload bytes across MemTable entries. def payload_entries_bytes(+entries: List<&2, Entry>) -> Nat: match entries: case Nil{}: 0n case Con{Entry{key, value}, tail}: Nat.add(Nat.add(StorageBytes.string_size(key), payload_value_bytes(value)), payload_entries_bytes(tail)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add 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/MemTable.bend&name=payload_value_bytes https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend&name=string_size