bin_prot

A binary protocol generator
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library bin_prot
Module Bin_prot . Nat0
type t = private int
val of_int : int -> t

of_int n converts integer n to a natural number.

  • raises Failure

    if n is negative.

val unsafe_of_int : int -> t