Sourcetype decoder = {buffer : bytes;mutable pos : int;mutable max : int;
} Sourceval io_buffer_size : int Sourcetype error = [ | `End_of_input| `Expected_char of char| `Unexpected_char of char| `Expected_string of string| `Expected_eol| `Expected_eol_or_space| `Not_enough_space| `Assert_predicate of char -> bool
] Sourcetype 'err info = {error : 'err;buffer : bytes;committed : int;
} Sourcetype ('v, 'err) state = | Done of 'v| Read of {buffer : bytes;off : int;len : int;continue : [ `Len of int | `End ] -> ('v, 'err) state;
}| Error of 'err info
Sourceval while1 : (char -> bool) -> decoder -> bytes * int * int Sourceval peek_while_eol : ?relax:bool -> decoder -> bytes * int * int Sourceval peek_while_eol_or_space : ?relax:bool -> decoder -> bytes * int * int