def to_string

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

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

329# Bytes to a byte string, one Char per octet.
330def to_string(b: Bytes) -> String:
331  Bytes{+len, buf} = b
332  to.go(U32.to_nat(len), peek(buf, (len - 1 : U32)), (len - 1 : U32), SNil{})

Uses (7)

Used by (41)