extprot

Extensible binary protocols for cross-language communication and long-term serialization
Library extprot
Module Extprot . Limits
type limits = {
is_num_elements_ok : int -> bool;
is_message_length_ok : int -> bool;
is_string_length_ok : int -> bool;
}
val default : limits
val get_limits : unit -> limits
val set_limits : limits -> unit
val check_message_length : ?message:string -> ?constructor:string -> ?field:string -> int -> unit
val check_string_length : ?message:string -> ?constructor:string -> ?field:string -> int -> unit
val check_num_elements : ?message:string -> ?constructor:string -> ?field:string -> int -> unit