Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Alternate interface to Stdio.In_channel
. The create
and with_file
functions don't have a binary
option, so it is compatible with the Record_in_channel.Make
functor.
include module type of Stdio.In_channel
val equal : t Base__Equal.equal
val stdin : t
val close : t -> Base.unit
val input : t -> buf:Base.bytes -> pos:Base.int -> len:Base.int -> Base.int
val really_input :
t ->
buf:Base.bytes ->
pos:Base.int ->
len:Base.int ->
Base.unit Base.option
val really_input_exn :
t ->
buf:Base.bytes ->
pos:Base.int ->
len:Base.int ->
Base.unit
val input_char : t -> Base.char Base.option
val input_byte : t -> Base.int Base.option
val input_binary_int : t -> Base.int Base.option
val unsafe_input_value : t -> 'a Base.option
val input_buffer : t -> Base.Buffer.t -> len:Base.int -> Base.unit Base.option
val input_all : t -> Base.string
val input_line : ?fix_win_eol:Base.bool -> t -> Base.string Base.option
val input_line_exn : ?fix_win_eol:Base.bool -> t -> Base.string
val fold_lines :
?fix_win_eol:Base.bool ->
t ->
init:'a ->
f:('a -> Base.string -> 'a) ->
'a
val input_lines : ?fix_win_eol:Base.bool -> t -> Base.string Base.list
val iter_lines :
?fix_win_eol:Base.bool ->
t ->
f:(Base.string -> Base.unit) ->
Base.unit
val seek : t -> Base.int64 -> Base.unit
val pos : t -> Base.int64
val length : t -> Base.int64
val set_binary_mode : t -> Base.bool -> Base.unit
val create : Base.string -> t
val with_file : Base.string -> f:(t -> 'a) -> 'a