StorageBytes.utf8.put.scalar: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend as StorageBytes Lines 161-176 of mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend&start_line=161&end_line=176 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes def utf8.put.scalar( cursor: Bytes.Cursor, +scalar: U32, ascii: Bool, two_byte: Bool, three_byte: Bool ) -> Bytes.Cursor: match ascii two_byte three_byte: case True{} _ _: utf8.put.byte(cursor, scalar) case False{} True{} _: utf8.put.two(cursor, scalar) case False{} False{} True{}: utf8.put.three(cursor, scalar) case False{} False{} False{}: utf8.put.four(cursor, scalar) 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=bend-kit-bytes@0.3.3.0/bytes.bend&name=Cursor https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend&name=utf8.put.byte https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend&name=utf8.put.four https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend&name=utf8.put.three https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend&name=utf8.put.two