def u32.duplicate.encoded

mylsm-lsm-store@0.6.0.1 · src/scan/Snapshot.bend:236

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

236def u32.duplicate.encoded(bytes: Bytes.Bytes) -> U32 & U32:
237  match bytes:
238    case Bytes.Bytes{+len, buf}:
239      u32.clone.pair.buffers(len,
240        Bytes.copy.bytes(len, buf, Bytes.alloc(len), 0, 0))

Uses (6)

Used by (1)