package lwt

  1. Overview
  2. Docs
val create : int -> t
val length : t -> int
val get : t -> int -> char
val set : t -> int -> char -> unit
val unsafe_get : t -> int -> char
val unsafe_set : t -> int -> char -> unit
val of_string : string -> t
val to_string : t -> string
val blit : t -> int -> t -> int -> int -> unit
val blit_string_bytes : string -> int -> t -> int -> int -> unit
val blit_bytes_string : t -> int -> string -> int -> int -> unit
val unsafe_blit : t -> int -> t -> int -> int -> unit
val unsafe_blit_string_bytes : string -> int -> t -> int -> int -> unit
val unsafe_blit_bytes_string : t -> int -> string -> int -> int -> unit
val proxy : t -> int -> int -> t
val extract : t -> int -> int -> t
val copy : t -> t
val fill : t -> int -> int -> char -> unit
val unsafe_fill : t -> int -> int -> char -> unit
val read : Lwt_unix.file_descr -> t -> int -> int -> int Lwt.t
val write : Lwt_unix.file_descr -> t -> int -> int -> int Lwt.t
val recv : Lwt_unix.file_descr -> t -> int -> int -> Unix.msg_flag list -> int Lwt.t
val send : Lwt_unix.file_descr -> t -> int -> int -> Unix.msg_flag list -> int Lwt.t
val recvfrom : Lwt_unix.file_descr -> t -> int -> int -> Unix.msg_flag list -> (int * Unix.sockaddr) Lwt.t
val sendto : Lwt_unix.file_descr -> t -> int -> int -> Unix.msg_flag list -> Unix.sockaddr -> int Lwt.t
type io_vector = {
  1. iov_buffer : t;
  2. iov_offset : int;
  3. iov_length : int;
}
val io_vector : buffer:t -> offset:int -> length:int -> io_vector
val recv_msg : socket:Lwt_unix.file_descr -> io_vectors:io_vector list -> (int * Unix.file_descr list) Lwt.t
val send_msg : socket:Lwt_unix.file_descr -> io_vectors:io_vector list -> fds:Unix.file_descr list -> int Lwt.t
val map_file : fd:Unix.file_descr -> ?pos:int64 -> shared:bool -> ?size:int -> unit -> t
val mapped : t -> bool
type advice =
  1. | MADV_NORMAL
  2. | MADV_RANDOM
  3. | MADV_SEQUENTIAL
  4. | MADV_WILLNEED
  5. | MADV_DONTNEED
val madvise : t -> int -> int -> advice -> unit
val page_size : int
val mincore : t -> int -> bool array -> unit
val wait_mincore : t -> int -> unit Lwt.t
OCaml

Innovation. Community. Security.