def clone.split

mylsm-lsm-store@0.6.0.1 · src/transfer/Restore.bend:67

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

67def clone.split(bytes: Bytes.Bytes) -> Bytes.Bytes & Bytes.Bytes:
68  match bytes:
69    case Bytes.Bytes{+len, buf}:
70      clone.pair(len, Bytes.copy.bytes(len, buf, Bytes.alloc(len), 0, 0))

Uses (5)

Used by (11)