package geojsone

  1. Overview
  2. Docs
val io_buffer_size : int
val pp : Stdlib.Format.formatter -> ('a, Stdlib.Format.formatter, unit) Stdlib.format -> 'a
val invalid_bounds : int -> int -> 'a
val unsafe_chr : int -> char
val blit : Cstruct.buffer -> int -> Cstruct.buffer -> int -> int -> unit
val unsafe_blit : Cstruct.t -> int -> Cstruct.t -> int -> int -> unit
val unsafe_array_get : 'a array -> int -> 'a
val unsafe_byte : Cstruct.t -> int -> int
val unsafe_set_byte : Cstruct.t -> int -> int -> unit
val u_bom : Stdlib.Uchar.t
val u_rep : Stdlib.Uchar.t
type encoding = [
  1. | `UTF_8
  2. | `UTF_16
  3. | `UTF_16BE
  4. | `UTF_16LE
]
type decoder_encoding = [
  1. | encoding
  2. | `US_ASCII
  3. | `ISO_8859_1
]
val encoding_of_string : string -> [> `ISO_8859_1 | `US_ASCII | `UTF_16 | `UTF_16BE | `UTF_16LE | `UTF_8 ] option
val encoding_to_string : [< `ISO_8859_1 | `US_ASCII | `UTF_16 | `UTF_16BE | `UTF_16LE | `UTF_8 ] -> string
val malformed : Cstruct.t -> int -> int -> [> `Malformed of string ]
val malformed_pair : bool -> int -> Cstruct.t -> int -> int -> [> `Malformed of string ]
val r_us_ascii : Cstruct.t -> int -> [> `Malformed of string | `Uchar of Stdlib.Uchar.t ]
val r_iso_8859_1 : Cstruct.t -> int -> [> `Uchar of Stdlib.Uchar.t ]
val utf_8_len : int array
val r_utf_8 : Cstruct.t -> int -> int -> [> `Malformed of string | `Uchar of Stdlib.Uchar.t ]
val r_utf_16 : Cstruct.t -> int -> int -> [> `Hi of int | `Malformed of string | `Uchar of Stdlib.Uchar.t ]
val r_utf_16_lo : int -> Cstruct.t -> int -> int -> [> `Malformed of string | `Uchar of Stdlib.Uchar.t ]
val r_encoding : Cstruct.t -> int -> int -> [> `UTF_16BE of [> `ASCII of int | `BOM | `Decode ] | `UTF_16LE of [> `ASCII of int | `BOM ] | `UTF_8 of [> `BOM | `Decode | `End ] ]
type src = unit -> Cstruct.t
type nln = [
  1. | `ASCII of Stdlib.Uchar.t
  2. | `NLF of Stdlib.Uchar.t
  3. | `Readline of Stdlib.Uchar.t
]
type decode = [
  1. | `Await
  2. | `End
  3. | `Malformed of string
  4. | `Uchar of Stdlib.Uchar.t
]
val pp_decode : Stdlib.Format.formatter -> [< `Await | `End | `Malformed of string | `Uchar of Stdlib.Uchar.t ] -> unit
type decoder = {
  1. src : src;
  2. mutable encoding : decoder_encoding;
  3. nln : nln option;
  4. nl : Stdlib.Uchar.t;
  5. mutable i : Cstruct.t;
  6. mutable i_pos : int;
  7. mutable i_max : int;
  8. t : Cstruct.t;
  9. mutable t_len : int;
  10. mutable t_need : int;
  11. mutable removed_bom : bool;
  12. mutable last_cr : bool;
  13. mutable line : int;
  14. mutable col : int;
  15. mutable byte_count : int;
  16. mutable count : int;
  17. mutable pp : decoder -> [ `Malformed of string | `Uchar of Stdlib.Uchar.t ] -> decode;
  18. mutable k : decoder -> decode;
}
val i_rem : decoder -> int
val eoi : decoder -> unit
val src : decoder -> Cstruct.t -> int -> int -> unit
val refill : (decoder -> 'a) -> decoder -> 'b
val t_need : decoder -> int -> unit
val t_fill : (decoder -> 'a) -> decoder -> 'b
val ret : (decoder -> decode) -> [ `Malformed of string | `Uchar of Stdlib.Uchar.t ] -> int -> decoder -> decode
val decode_us_ascii : decoder -> decode
val decode_iso_8859_1 : decoder -> decode
val t_decode_utf_8 : decoder -> decode
val decode_utf_8 : decoder -> decode
val t_decode_utf_16be_lo : int -> decoder -> decode
val t_decode_utf_16be : decoder -> decode
val decode_utf_16be_lo : [ `Hi of int | `Malformed of string | `Uchar of Stdlib.Uchar.t ] -> decoder -> decode
val decode_utf_16be : decoder -> decode
val t_decode_utf_16le_lo : int -> decoder -> decode
val t_decode_utf_16le : decoder -> decode
val decode_utf_16le_lo : [ `Hi of int | `Malformed of string | `Uchar of Stdlib.Uchar.t ] -> decoder -> decode
val decode_utf_16le : decoder -> decode
val guessed_utf_8 : decoder -> decode
val guessed_utf_16 : decoder -> bool -> [< `ASCII of int | `BOM | `Decode ] -> decode
val guess_encoding : decoder -> decode
val nline : decoder -> unit
val ncol : decoder -> unit
val ncount : decoder -> unit
val cr : decoder -> bool -> unit
val pp_remove_bom : bool -> (decoder -> [ `Malformed of string | `Uchar of Stdlib.Uchar.t ] -> decode) -> decoder -> [< `Malformed of string | `Uchar of Stdlib.Uchar.t ] -> decode
val pp_nln_none : decoder -> [< `Malformed of 'a | `Uchar of Stdlib.Uchar.t ] -> [> `Malformed of 'a | `Uchar of Stdlib.Uchar.t ]
val pp_nln_readline : decoder -> [< `Malformed of string | `Uchar of Stdlib.Uchar.t ] -> decode
val pp_nln_nlf : decoder -> [< `Malformed of string | `Uchar of Stdlib.Uchar.t ] -> decode
val pp_nln_ascii : decoder -> [< `Malformed of string | `Uchar of Stdlib.Uchar.t ] -> decode
val decode_fun : [< `ISO_8859_1 | `US_ASCII | `UTF_16 | `UTF_16BE | `UTF_16LE | `UTF_8 ] -> decoder -> decode
val decoder : ?nln: [< `ASCII of Stdlib.Uchar.t | `NLF of Stdlib.Uchar.t | `Readline of Stdlib.Uchar.t ] -> ?encoding: [< `ISO_8859_1 | `US_ASCII | `UTF_16 | `UTF_16BE | `UTF_16LE | `UTF_8 ] -> src -> decoder
val decode : decoder -> decode
val decoder_line : decoder -> int
val decoder_col : decoder -> int
val decoder_byte_count : decoder -> int
val decoder_count : decoder -> int
val decoder_removed_bom : decoder -> bool
val decoder_src : decoder -> src
val decoder_nln : decoder -> nln option
val decoder_encoding : decoder -> decoder_encoding
val set_decoder_encoding : decoder -> [< `ISO_8859_1 | `US_ASCII | `UTF_16 | `UTF_16BE | `UTF_16LE | `UTF_8 ] -> unit
type dst = Cstruct.t -> unit
type encode = [
  1. | `Await
  2. | `End
  3. | `Uchar of Stdlib.Uchar.t
]
type encoder = {
  1. dst : dst;
  2. encoding : encoding;
  3. mutable o : Cstruct.t;
  4. mutable o_pos : int;
  5. mutable o_max : int;
  6. t : Cstruct.t;
  7. mutable t_pos : int;
  8. mutable t_max : int;
  9. mutable k : encoder -> encode -> [ `Ok | `Partial ];
}
val o_rem : encoder -> int
val dst : encoder -> Cstruct.t -> int -> int -> unit
val flush : encoder -> stop:bool -> unit
val t_range : encoder -> int -> unit
val t_flush : (encoder -> 'a) -> encoder -> 'b
val encode_utf_8 : encoder -> encode -> [ `Ok | `Partial ]
val encode_utf_16be : encoder -> encode -> [ `Ok | `Partial ]
val encode_utf_16le : encoder -> encode -> [ `Ok | `Partial ]
val encode_fun : [< `UTF_16 | `UTF_16BE | `UTF_16LE | `UTF_8 ] -> encoder -> encode -> [ `Ok | `Partial ]
val encoder : [< `UTF_16 | `UTF_16BE | `UTF_16LE | `UTF_8 ] -> dst -> encoder
val encode : encoder -> [< `Await | `End | `Uchar of Stdlib.Uchar.t ] -> [ `Ok | `Partial ]
val encoder_encoding : encoder -> encoding
val encoder_dst : encoder -> dst
module Manual : sig ... end
module String : sig ... end
module Buffer : sig ... end