def byte

bend-kit-protobuf@0.2.0.0 · protobuf.bend:311

import bend-kit-protobuf@0.2.0.0/protobuf.bend as Protobuf
import 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)

Uses (7)

Used by (2)