package ocaml-protoc

  1. Overview
  2. Docs
val create : unit -> Protobuf.Encoder.t
val to_bytes : Protobuf.Encoder.t -> bytes
val key : (int * Protobuf.payload_kind) -> Protobuf.Encoder.t -> unit
val nested : (Protobuf.Encoder.t -> unit) -> Protobuf.Encoder.t -> unit
val map_entry : encode_key:('a -> Protobuf.Encoder.t -> 'b) -> encode_value:('c -> Protobuf.Encoder.t -> unit) -> (('d * Protobuf.payload_kind) * ('e * Protobuf.payload_kind)) -> Protobuf.Encoder.t -> unit
val empty_nested : Protobuf.Encoder.t -> unit
val int_as_varint : int -> Protobuf.Encoder.t -> unit
val int_as_zigzag : int -> Protobuf.Encoder.t -> unit
val int32_as_varint : int32 -> Protobuf.Encoder.t -> unit
val int32_as_zigzag : int32 -> Protobuf.Encoder.t -> unit
val int64_as_varint : int64 -> Protobuf.Encoder.t -> unit
val int64_as_zigzag : int64 -> Protobuf.Encoder.t -> unit
val int32_as_bits32 : int32 -> Protobuf.Encoder.t -> unit
val int64_as_bits64 : int64 -> Protobuf.Encoder.t -> unit
val bool : bool -> Protobuf.Encoder.t -> unit
val float_as_bits32 : float -> Protobuf.Encoder.t -> unit
val float_as_bits64 : float -> Protobuf.Encoder.t -> unit
val int_as_bits32 : int -> Protobuf.Encoder.t -> unit
val int_as_bits64 : int -> Protobuf.Encoder.t -> unit
val string : string -> Protobuf.Encoder.t -> unit
val bytes : bytes -> Protobuf.Encoder.t -> unit
OCaml

Innovation. Community. Security.