def clone.split
import mylsm-lsm-store@0.6.0.1/src/ByteManifest.bend as ByteManifestimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
54# Clones a packed buffer for the manifest checksum.
55def clone.split(bytes: Bytes.Bytes) -> Bytes.Bytes & Bytes.Bytes:
56 match bytes:
57 case Bytes.Bytes{+len, buf}:
58 clone.pair(len, Bytes.copy.bytes(len, buf, Bytes.alloc(len), 0, 0))