package stdcompat

  1. Overview
  2. Docs
type t = Stdlib.out_channel
type open_flag = Stdlib.Pervasives.open_flag =
  1. | Open_rdonly
  2. | Open_wronly
  3. | Open_append
  4. | Open_creat
  5. | Open_trunc
  6. | Open_excl
  7. | Open_binary
  8. | Open_text
  9. | Open_nonblock
val stdout : Stdlib.out_channel
val stderr : Stdlib.out_channel
val open_bin : string -> Stdlib.out_channel
val open_text : string -> Stdlib.out_channel
val open_gen : Stdlib.open_flag list -> int -> string -> Stdlib.out_channel
val read_and_close : Stdlib.out_channel -> (Stdlib.out_channel -> 'a) -> 'a
val with_open_bin : string -> (Stdlib.out_channel -> 'a) -> 'a
val with_open_text : string -> (Stdlib.out_channel -> 'a) -> 'a
val with_open_gen : Stdlib.open_flag list -> int -> string -> (Stdlib.out_channel -> 'a) -> 'a
val seek : Stdlib.out_channel -> int64 -> unit
val pos : Stdlib.out_channel -> int64
val length : Stdlib.out_channel -> int64
val close : Stdlib.out_channel -> unit
val close_noerr : Stdlib.out_channel -> unit
val flush : Stdlib.out_channel -> unit
val flush_all : unit -> unit
val output_char : Stdlib.out_channel -> char -> unit
val output_byte : Stdlib.out_channel -> int -> unit
val output_string : Stdlib.out_channel -> string -> unit
val output_bytes : Stdlib.out_channel -> bytes -> unit
val output : Stdlib.out_channel -> bytes -> int -> int -> unit
val output_substring : Stdlib.out_channel -> string -> int -> int -> unit
val set_binary_mode : Stdlib.out_channel -> bool -> unit
val set_buffered : 'a -> 'b -> 'c
val is_buffered : 'a -> bool
OCaml

Innovation. Community. Security.