Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Iostream.InSourceInput stream.
type t = private {input : bytes -> int -> int -> int;Read into the slice. Returns 0 only if the stream is closed.
close : unit -> unit;Close the input. Must be idempotent.
*)as_fd : unit -> Unix.file_descr option;Cast into a file descriptor, if it actually is a direct wrapper of a Unix FD.
*)}An input stream, i.e an incoming stream of bytes.
This can be a string, an int_channel, an Unix.file_descr, a decompression wrapper around another input stream, etc.
val create :
?as_fd:(unit -> Unix.file_descr option) ->
?close:(unit -> unit) ->
input:(bytes -> int -> int -> int) ->
unit ->
tCreate an in stream from a raw Unix file descriptor. The file descriptor must be opened for reading.
Wrap a standard input channel.
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.