package moonpool-lwt

  1. Overview
  2. Docs

Module Moonpool_lwt.IO_inSource

Input channel

Sourceclass type t = object ... end
Sourceval create : ?close:(unit -> unit) -> input:(bytes -> int -> int -> int) -> unit -> t
Sourceval empty : t
Sourceval of_bytes : ?off:int -> ?len:int -> bytes -> t
Sourceval of_string : ?off:int -> ?len:int -> string -> t
Sourceval input : t -> bytes -> int -> int -> int

Read into the given slice.

  • returns

    the number of bytes read, 0 means end of input.

Sourceval close : < close : unit -> unit.. > -> unit

Close the channel.

Sourceval really_input : t -> bytes -> int -> int -> unit
Sourceval really_input_string : t -> int -> string
Sourceval copy_into : ?buf:bytes -> t -> IO_out.t -> unit
Sourceval concat : t list -> t
Sourceval input_all : ?buf:bytes -> t -> string
Sourceval of_unix_fd : ?close_noerr:bool -> ?buf:bytes -> Unix.file_descr -> t
OCaml

Innovation. Community. Security.