package ppx_deriving_protobuf
A Protocol Buffers codec generator for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
ppx_deriving_protobuf-v3.0.0.tbz
sha256=5287ef0db8d4f7a62b0bb7a21010172d602aa45a7fecc2d4cb9681366ddf81b5
sha512=6bc04d10c2448a35c9c2404be01aab616d51cdda563f6f3b8d213db18614233746c6bf2190a3f12881f544e91c18aa01d56f9aeeb7b01eddfe68123b88703625
doc/ppx_deriving_protobuf.runtime/Protobuf/Encoder/index.html
Module Protobuf.Encoder
Source
Type 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)
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>