def encode

bend-kit-cbor@0.3.0.0 · cbor.bend:403

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

403# Definite lengths and the shortest head for every length, integer, and tag; floats keep their width.
404# None when a TStr is not UTF-8, a Half has more than 16 bits, or Other is not a simple value 0..19 or 32..255.
405def encode(v: Val) -> Maybe<&1, Bytes.Bytes>:
406  encode.sized(size(v))

Uses (5)

Used by (2)