def clone.split
import mylsm-lsm-store@0.6.0.1/src/transfer/Restore.bend as Restoreimport 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)
- mylsm-lsm-store@0.6.0.1/src/transfer/Restore:clone.triple
- mylsm-lsm-store@0.6.0.1/src/transfer/Restore:block.checksum.input
- mylsm-lsm-store@0.6.0.1/src/transfer/Restore:block.checksum.sized.validated
- mylsm-lsm-store@0.6.0.1/src/transfer/Restore:clone.triple.step
- mylsm-lsm-store@0.6.0.1/src/transfer/Restore:decode
- …