def clone.pair

mylsm-lsm-store@0.6.0.1 · src/ByteSstFile.bend:58

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

58# Reifies two independently owned copies of a byte buffer.
59def clone.pair(+len: U32, copied: Array<U32> & Array<U32>) -> Bytes.Bytes & Bytes.Bytes:
60  match copied:
61    case (left, right):
62      (Bytes.Bytes{len, left}, Bytes.Bytes{len, right})

Uses (5)

Used by (1)