def byte
import bend-kit-protobuf@0.2.0.0/protobuf.bend as Protobufimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as B
311def byte(out: B.Bytes, v: U32, max_size: U32) -> Result<&2, &1, Error, B.Bytes>:
312 B.Bytes{+n, buf} = out
313 byte.limit(U32.is_lt(n, U32.min(max_size, 2147483647)), n, buf, v)