package extprot

  1. Overview
  2. Docs
type limits = {
  1. is_num_elements_ok : int -> bool;
  2. is_message_length_ok : int -> bool;
  3. 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
OCaml

Innovation. Community. Security.