package ocaml-protoc-plugin

  1. Overview
  2. Docs
Plugin for protoc protobuf compiler to generate ocaml definitions from a .proto file

Install

Dune Dependency

Authors

Maintainers

Sources

1.0.0.tar.gz
md5=278461dfca05f428e54abddfdf229471
sha512=b54528f0079c3d38d746ba97e48530bc87edfa684bc814623c450ee65502c6d16b9ae304c6ea6e19ff0ca84c454601a367abd35b295abf5b727bc702ff792716

doc/ocaml-protoc-plugin.protobuf/Protobuf/Deserialize/index.html

Module Protobuf.DeserializeSource

Module for deserializing values

Sourcemodule S : sig ... end
Sourcemodule C = S.C
Sourcetype 'a sentinal = unit -> 'a Result.t
Sourcetype 'a decoder = Protobuf__.Field.t -> 'a Result.t
Sourcetype (_, _) sentinal_list =
  1. | SNil : ('a, 'a) sentinal_list
  2. | SCons : 'a sentinal * ('b, 'c) sentinal_list -> ('a -> 'b, 'c) sentinal_list
Sourceval error_wrong_field : string -> Protobuf__.Field.t -> 'a Result.t
Sourceval error_illegal_value : string -> Protobuf__.Field.t -> 'a Result.t
Sourceval error_required_field_missing : 'a Result.t
Sourceval read_varint : signed:bool -> type_name:string -> Protobuf__.Field.t -> Int64.t Result.t
Sourceval read_varint32 : signed:bool -> type_name:string -> Protobuf__.Field.t -> (int32, Result.error) result
Sourceval type_of_spec : 'a. 'a S.spec -> [> `Fixed_32_bit | `Fixed_64_bit | `Length_delimited | `Varint ] * 'a decoder
Sourceval default_of_field_type : [< `Fixed_32_bit | `Fixed_64_bit | `Length_delimited | `Varint ] -> Protobuf__.Field.t
Sourceval sentinal : 'a. 'a S.compound -> (int * unit decoder) list * 'a sentinal
Sourcemodule Map : sig ... end
Sourceval read_fields_map : (Map.key * (Protobuf__.Field.t -> (unit, Result.error) result)) list -> Reader.t -> (unit, Result.error) result

Read fields - map based for nlogn lookup

Sourceval read_fields_array : int -> (int * (Protobuf__.Field.t -> (unit, Result.error) result)) list -> Reader.t -> (unit, Result.error) result

Read fields - array based for O(1) lookup

Sourceval deserialize : 'constr 't. ('constr, 't) S.compound_list -> 'constr -> Reader.t -> 't Result.t
OCaml

Innovation. Community. Security.