def to_hex
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytesimport Base
639# Two lowercase hex digits per byte.
640def to_hex(b: Bytes) -> String:
641 Bytes{+len, buf} = b
642 hex.go(U32.to_nat(len), peek(buf, (len - 1 : U32)), (len - 1 : U32), SNil{})