package biniou

  1. Overview
  2. Docs
type node_tag = int
val bool_tag : node_tag
val int8_tag : node_tag
val int16_tag : node_tag
val int32_tag : node_tag
val int64_tag : node_tag
val float32_tag : node_tag
val float64_tag : node_tag
val uvint_tag : node_tag
val svint_tag : node_tag
val string_tag : node_tag
val array_tag : node_tag
val tuple_tag : node_tag
val record_tag : node_tag
val num_variant_tag : node_tag
val variant_tag : node_tag
val unit_tag : node_tag
val table_tag : node_tag
val shared_tag : node_tag
val write_tag : Bi_outbuf.t -> node_tag -> unit
val read_tag : Bi_inbuf.t -> node_tag
type hash = int
val hash_name : string -> hash
val write_hashtag : Bi_outbuf.t -> hash -> bool -> unit
val string_of_hashtag : hash -> bool -> string
val read_hashtag : Bi_inbuf.t -> (Bi_inbuf.t -> hash -> bool -> 'a) -> 'a
val read_field_hashtag : Bi_inbuf.t -> hash
val make_unhash : string list -> hash -> string option
type int7 = int
val write_numtag : Bi_outbuf.t -> int7 -> bool -> unit
val read_numtag : Bi_inbuf.t -> (Bi_inbuf.t -> int7 -> bool -> 'a) -> 'a
val write_untagged_unit : Bi_outbuf.t -> unit -> unit
val write_untagged_bool : Bi_outbuf.t -> bool -> unit
val write_untagged_char : Bi_outbuf.t -> char -> unit
val write_untagged_int8 : Bi_outbuf.t -> int -> unit
val write_untagged_int16 : Bi_outbuf.t -> int -> unit
val write_untagged_int32 : Bi_outbuf.t -> int32 -> unit
val write_untagged_int64 : Bi_outbuf.t -> int64 -> unit
val write_untagged_float32 : Bi_outbuf.t -> float -> unit
val write_untagged_float64 : Bi_outbuf.t -> float -> unit
val write_untagged_string : Bi_outbuf.t -> string -> unit
val write_untagged_uvint : Bi_outbuf.t -> int -> unit
val write_untagged_svint : Bi_outbuf.t -> int -> unit
val write_unit : Bi_outbuf.t -> unit -> unit
val write_bool : Bi_outbuf.t -> bool -> unit
val write_char : Bi_outbuf.t -> char -> unit
val write_int8 : Bi_outbuf.t -> int -> unit
val write_int16 : Bi_outbuf.t -> int -> unit
val write_int32 : Bi_outbuf.t -> int32 -> unit
val write_int64 : Bi_outbuf.t -> int64 -> unit
val write_float32 : Bi_outbuf.t -> float -> unit
val write_float64 : Bi_outbuf.t -> float -> unit
val write_string : Bi_outbuf.t -> string -> unit
val write_uvint : Bi_outbuf.t -> int -> unit
val write_svint : Bi_outbuf.t -> int -> unit
val read_untagged_unit : Bi_inbuf.t -> unit
val read_untagged_bool : Bi_inbuf.t -> bool
val read_untagged_char : Bi_inbuf.t -> char
val read_untagged_int8 : Bi_inbuf.t -> int
val read_untagged_int16 : Bi_inbuf.t -> int
val read_untagged_int32 : Bi_inbuf.t -> int32
val read_untagged_int64 : Bi_inbuf.t -> int64
val read_untagged_float32 : Bi_inbuf.t -> float
val read_untagged_float64 : Bi_inbuf.t -> float
val read_untagged_string : Bi_inbuf.t -> string
val read_untagged_uvint : Bi_inbuf.t -> int
val read_untagged_svint : Bi_inbuf.t -> int
val skip : Bi_inbuf.t -> unit
type tree = [
  1. | `Array of (node_tag * tree array) option
  2. | `Bool of bool
  3. | `Float32 of float
  4. | `Float64 of float
  5. | `Int16 of int
  6. | `Int32 of Int32.t
  7. | `Int64 of Int64.t
  8. | `Int8 of char
  9. | `Num_variant of int * tree option
  10. | `Record of (string option * hash * tree) array
  11. | `Shared of tree
  12. | `String of string
  13. | `Svint of int
  14. | `Table of ((string option * hash * node_tag) array * tree array array) option
  15. | `Tuple of tree array
  16. | `Unit
  17. | `Uvint of int
  18. | `Variant of string option * hash * tree option
]
val write_tree : Bi_outbuf.t -> tree -> unit
val string_of_tree : tree -> string
val read_tree : ?unhash:(hash -> string option) -> Bi_inbuf.t -> tree
val tree_of_string : ?unhash:(hash -> string option) -> string -> tree
val tag_of_tree : tree -> node_tag
val view_of_tree : tree -> string
val view : ?unhash:(hash -> string option) -> string -> string
val print_view_of_tree : tree -> unit
val print_view : ?unhash:(hash -> string option) -> string -> unit
val output_view_of_tree : Pervasives.out_channel -> tree -> unit
val output_view : ?unhash:(hash -> string option) -> Pervasives.out_channel -> string -> unit
val safety_test : unit -> unit
OCaml

Innovation. Community. Security.