sig
type t =
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t
val create : int -> Lwt_bytes.t
val length : Lwt_bytes.t -> int
val get : Lwt_bytes.t -> int -> char
val set : Lwt_bytes.t -> int -> char -> unit
val unsafe_get : Lwt_bytes.t -> int -> char
val unsafe_set : Lwt_bytes.t -> int -> char -> unit
val of_bytes : Bytes.t -> Lwt_bytes.t
val of_string : string -> Lwt_bytes.t
val to_bytes : Lwt_bytes.t -> Bytes.t
val to_string : Lwt_bytes.t -> string
val blit : Lwt_bytes.t -> int -> Lwt_bytes.t -> int -> int -> unit
val blit_from_bytes : Bytes.t -> int -> Lwt_bytes.t -> int -> int -> unit
val blit_to_bytes : Lwt_bytes.t -> int -> Bytes.t -> int -> int -> unit
val unsafe_blit : Lwt_bytes.t -> int -> Lwt_bytes.t -> int -> int -> unit
val unsafe_blit_from_bytes :
Bytes.t -> int -> Lwt_bytes.t -> int -> int -> unit
val unsafe_blit_to_bytes :
Lwt_bytes.t -> int -> Bytes.t -> int -> int -> unit
val proxy : Lwt_bytes.t -> int -> int -> Lwt_bytes.t
val extract : Lwt_bytes.t -> int -> int -> Lwt_bytes.t
val copy : Lwt_bytes.t -> Lwt_bytes.t
val fill : Lwt_bytes.t -> int -> int -> char -> unit
external unsafe_fill : Lwt_bytes.t -> int -> int -> char -> unit
= "lwt_unix_fill_bytes" "noalloc"
val read : Lwt_unix.file_descr -> Lwt_bytes.t -> int -> int -> int Lwt.t
val write : Lwt_unix.file_descr -> Lwt_bytes.t -> int -> int -> int Lwt.t
val recv :
Lwt_unix.file_descr ->
Lwt_bytes.t -> int -> int -> Unix.msg_flag list -> int Lwt.t
val send :
Lwt_unix.file_descr ->
Lwt_bytes.t -> int -> int -> Unix.msg_flag list -> int Lwt.t
val recvfrom :
Lwt_unix.file_descr ->
Lwt_bytes.t ->
int -> int -> Unix.msg_flag list -> (int * Unix.sockaddr) Lwt.t
val sendto :
Lwt_unix.file_descr ->
Lwt_bytes.t ->
int -> int -> Unix.msg_flag list -> Unix.sockaddr -> int Lwt.t
type io_vector = {
iov_buffer : Lwt_bytes.t;
iov_offset : int;
iov_length : int;
}
val io_vector :
buffer:Lwt_bytes.t -> offset:int -> length:int -> Lwt_bytes.io_vector
val recv_msg :
socket:Lwt_unix.file_descr ->
io_vectors:Lwt_bytes.io_vector list -> (int * Unix.file_descr list) Lwt.t
val send_msg :
socket:Lwt_unix.file_descr ->
io_vectors:Lwt_bytes.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 -> Lwt_bytes.t
external mapped : Lwt_bytes.t -> bool = "lwt_unix_mapped" "noalloc"
type advice =
MADV_NORMAL
| MADV_RANDOM
| MADV_SEQUENTIAL
| MADV_WILLNEED
| MADV_DONTNEED
val madvise : Lwt_bytes.t -> int -> int -> Lwt_bytes.advice -> unit
val page_size : int
val mincore : Lwt_bytes.t -> int -> bool array -> unit
val wait_mincore : Lwt_bytes.t -> int -> unit Lwt.t
end