def utf8.put.two

mylsm-lsm-store@0.6.0.1 · src/StorageBytes.bend:144

import mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend as StorageBytes
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

144def utf8.put.two(cursor: Bytes.Cursor, +scalar: U32) -> Bytes.Cursor:
145  utf8.put.byte(utf8.put.byte(cursor, (192 + U32.shrn(scalar, 6n) : U32)),
146    (128 + U32.and(scalar, 63) : U32))

Uses (6)

Used by (1)