package iostream
Module Iostream.InSource
Input stream.
An input stream that is also seekable.
Wrap a standard input channel.
Source
class open_file : ?close_noerr:bool -> ?mode:int -> ?flags:open_flag list -> string ->
t_seekableSource
val open_file :
?close_noerr:bool ->
?mode:int ->
?flags:open_flag list ->
string ->
t_seekableSource
val with_open_file :
?close_noerr:bool ->
?mode:int ->
?flags:open_flag list ->
string ->
(t_seekable -> 'a) ->
'aAn input channel reading from the string.
An input channel reading from the bytes buffer. See of_string for more details.
Read bytes into the given buffer. This returns 0 only if the stream has reached its end.
Read the whole content into the given buffer.
input_all ic reads the whole content of ic into a string.
Same as input, but reads exactly the demanded amount of bytes.
really_input_string ic n reads exactly n bytes of ic and returns them as a string.