def write_fixed64

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

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

368def write_fixed64(v: Word64, out: B.Bytes, max_size: U32) -> Result<&2, &1, Error, B.Bytes>:
369  B.Bytes{+n, buf} = out
370  +limit = U32.min(max_size, 2147483647)
371  write_fixed64.limit(U32.is_le(n, limit) && U32.is_le(8, (limit - n : U32)), n, buf, v)

Uses (10)

Used by (1)