package extlib

  1. Overview
  2. Docs
type input
type 'a output
exception No_more_input
exception Input_closed
exception Output_closed
val read : input -> char
val nread : input -> int -> string
val really_nread : input -> int -> string
val input : input -> string -> int -> int -> int
val really_input : input -> string -> int -> int -> int
val close_in : input -> unit
val write : 'a output -> char -> unit
val nwrite : 'a output -> string -> unit
val output : 'a output -> string -> int -> int -> int
val really_output : 'a output -> string -> int -> int -> int
val flush : 'a output -> unit
val close_out : 'a output -> 'a
val input_string : string -> input
val output_string : unit -> string output
val input_channel : Pervasives.in_channel -> input
val output_channel : Pervasives.out_channel -> unit output
val input_enum : char Enum.t -> input
val output_enum : unit -> char Enum.t output
val create_in : read:(unit -> char) -> input:(string -> int -> int -> int) -> close:(unit -> unit) -> input
val create_out : write:(char -> unit) -> output:(string -> int -> int -> int) -> flush:(unit -> unit) -> close:(unit -> 'a) -> 'a output
val printf : 'a output -> ('b, unit, string, unit) Pervasives.format4 -> 'b
val read_all : input -> string
val pipe : unit -> input * unit output
val pos_in : input -> input * (unit -> int)
val pos_out : 'a output -> 'a output * (unit -> int)
val cast_output : 'a output -> unit output
exception Overflow of string
val read_byte : input -> int
val read_signed_byte : input -> int
val read_ui16 : input -> int
val read_i16 : input -> int
val read_i32 : input -> int
val read_real_i32 : input -> int32
val read_i64 : input -> int64
val read_double : input -> float
val read_string : input -> string
val read_line : input -> string
val write_byte : 'a output -> int -> unit
val write_ui16 : 'a output -> int -> unit
val write_i16 : 'a output -> int -> unit
val write_i32 : 'a output -> int -> unit
val write_real_i32 : 'a output -> int32 -> unit
val write_i64 : 'a output -> int64 -> unit
val write_double : 'a output -> float -> unit
val write_string : 'a output -> string -> unit
val write_line : 'a output -> string -> unit
module BigEndian : sig ... end
type in_bits
type out_bits
exception Bits_error
val input_bits : input -> in_bits
val output_bits : 'a output -> out_bits
val read_bits : in_bits -> int -> int
val write_bits : out_bits -> nbits:int -> int -> unit
val flush_bits : out_bits -> unit
val drop_bits : in_bits -> unit
class in_channel : input -> object ... end
class out_channel : 'a output -> object ... end
class in_chars : input -> object ... end
class out_chars : 'a output -> object ... end
val from_in_channel : in_channel -> input
val from_out_channel : out_channel -> unit output
val from_in_chars : in_chars -> input
val from_out_chars : out_chars -> unit output
OCaml

Innovation. Community. Security.