MemTable.payload_value_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 41-47 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=41&end_line=47 import Base import mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend as StorageBytes # Counts UTF-8 payload bytes for a value or tombstone. def payload_value_bytes(value: Maybe<&2, String>) -> Nat: match value: case None{}: 0n case Some{text}: StorageBytes.string_size(text) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend&name=string_size