def clone

bend-kit-bytes@0.3.3.0 · bytes.bend:351

import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import Base

351# Two buffers that hold the same bytes.
352def clone(b: Bytes) -> Bytes & Bytes:
353  Bytes{+len, buf} = b
354  clone.of(len, Array.clone(U32, buf))

Uses (5)

Used by (5)