package moonpool-lwt

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Input channel

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

Read into the given slice.

  • returns

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

val close : < close : unit -> unit.. > -> unit

Close the channel.

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

Innovation. Community. Security.