Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val pp : Format.formatter -> ('a, Format.formatter, unit) format -> 'a
val blit : Cstruct.buffer -> int -> Cstruct.buffer -> int -> int -> unit
val unsafe_byte : Cstruct.t -> int -> int
val unsafe_set_byte : Cstruct.t -> int -> int -> unit
val u_bom : Uchar.t
val u_rep : Uchar.t
val malformed : Cstruct.t -> int -> int -> [> `Malformed of string ]
val malformed_pair :
bool ->
int ->
Cstruct.t ->
int ->
int ->
[> `Malformed of string ]
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
val pp_decode :
Format.formatter ->
[< `Await | `End | `Malformed of string | `Uchar of Uchar.t ] ->
unit
type decoder = {
src : src;
mutable encoding : decoder_encoding;
nln : nln option;
nl : Uchar.t;
mutable i : Cstruct.t;
mutable i_pos : int;
mutable i_max : int;
t : Cstruct.t;
mutable t_len : int;
mutable t_need : int;
mutable removed_bom : bool;
mutable last_cr : bool;
mutable line : int;
mutable col : int;
mutable byte_count : int;
mutable count : int;
mutable pp : decoder -> [ `Malformed of string | `Uchar of Uchar.t ] -> decode;
mutable k : decoder -> decode;
}
val i_rem : decoder -> int
val eoi : decoder -> unit
val t_need : decoder -> int -> unit
val nline : decoder -> unit
val ncol : decoder -> unit
val ncount : decoder -> unit
val cr : decoder -> bool -> unit
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_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
val o_rem : encoder -> int
val flush : encoder -> stop:bool -> unit
val t_range : encoder -> int -> unit
module Manual : sig ... end
module String : sig ... end
module Buffer : sig ... end