Protobuf.EncoderSourceType of failures possible while encoding.
error_to_string e converts error e to its string representation.
Type of wire format encoders.
bytes b e writes a varint indicating length of b and then b to e.
nested f e applies f to an encoder for a message nested in e.
key (k, pk) e writes a key and a payload kind to e.
encode_exn f x ≡ let e = create () in f x e; to_bytes f.
encode f x ≡ try Some (encode_exn f x) with Failure _ -> None.
int32_of_int fld v returns v truncated to int32. If the value doesn't fit in the range of int32, raises Failure (Overflow fld).
int32_of_int64 fld v returns v truncated to int32. If the value doesn't fit in the range of int32, raises Failure (Overflow fld).