def bytes.clone.split

mylsm-lsm-store@0.6.0.1 · src/SstFile.bend:66

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

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

Uses (5)

Used by (4)