SstFile.parse.record.key.limit: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/SstFile.bend as SstFile Lines 666-674 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=666&end_line=674 import Base import mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend as StorageBytes def parse.record.key.limit( tag: U32, +key_len: U32 ) -> Bool: match tag: case 1: U32.is_le(key_len, (StorageBytes.MAX_RECORD_BYTES() - 5 : U32)) case _: U32.is_le(key_len, (StorageBytes.MAX_RECORD_BYTES() - 9 : U32)) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_le https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.sub https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Con https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Nil https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend&name=MAX_RECORD_BYTES