package ppx_deriving_protobuf
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A Protocol Buffers codec generator for OCaml >=4.02
Install
dune-project
Dependency
Authors
Maintainers
Sources
v2.7.tar.gz
sha256=10c0414601bdb4ccac7c3180e0e70f91a408a15e6a4220cdd6b7a7af5bed3efd
doc/ppx_deriving_protobuf.runtime/Protobuf/Encoder/index.html
Module Protobuf.Encoder
val error_to_string : error -> stringerror_to_string e converts error e to its string representation.
exception Failure of errorval create : unit -> tcreate () creates a new encoder.
val to_string : t -> stringto_string e converts the message assembled in e to a string.
val to_bytes : t -> bytesto_bytes e converts the message assembled in e to bytes.
val varint : int64 -> t -> unitvarint i e writes a varint i to e.
val zigzag : int64 -> t -> unitzigzag i e zigzag-encodes a varint i and writes it to e.
val bits32 : int32 -> t -> unitbits32 i e writes four bytes of i to e.
val bits64 : int64 -> t -> unitbits64 i e writes eight bytes of i to e.
val bytes : bytes -> t -> unitbytes b e writes a varint indicating length of b and then b to e.
val key : (int * payload_kind) -> t -> unitkey (k, pk) e writes a key and a payload kind to e.
val encode_exn : ('a -> t -> unit) -> 'a -> bytesencode_exn f x ≡ let e = create () in f x e; to_bytes f.
val encode : ('a -> t -> unit) -> 'a -> bytes optionencode 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).
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>