Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
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 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 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 decoder = {
src : src;
mutable encoding : decoder_encoding;
nln : nln option;
nl : Stdlib.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 Stdlib.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 pp_nln_none :
decoder ->
[< `Malformed of 'a | `Uchar of Stdlib.Uchar.t ] ->
[> `Malformed of 'a | `Uchar of Stdlib.Uchar.t ]
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
val encode :
encoder ->
[< `Await | `End | `Uchar of Stdlib.Uchar.t ] ->
[ `Ok | `Partial ]
module Manual : sig ... end
module String : sig ... end
module Buffer : sig ... end