def encode.name.buffer
import mylsm-lsm-store@0.6.0.1/src/Manifest.bend as Manifestimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
84def encode.name.buffer(+len: U32, tail: Bytes.Bytes, packed: Bytes.Bytes) -> Bytes.Bytes:
85 match packed:
86 case Bytes.Bytes{_, buf}:
87 encode.name.copies(len, tail, Bytes.copy.bytes(len, buf, Bytes.alloc(len), 0, 0))