module Splice: sig
.. end
Splice flags
type
flag =
| |
MOVE |
| |
NONBLOCK |
| |
MORE |
| |
GIFT |
Type of Splice event flag
type
flags
Type of Splice event flags
val make_flags : flag array -> flags
make_flags ar
Returns flags constructed from the array of flags ar
.
Splice functions
val splice : (?assume_fd_is_nonblocking:bool ->
fd_in:Core.Unix.File_descr.t ->
?off_in:int ->
fd_out:Core.Unix.File_descr.t ->
?off_out:int -> len:int -> flags -> int * int * int)
Core.Std.Or_error.t
splice ?assume_fd_is_nonblocking ~fd_in ?off_in ~fd_out ?off_out
~len flags
see man-page for details.
RaisesUnix_error
on Unix-errors.
Invalid_argument
if the offsets or length are invalid
Returns the triple
(ret,
ret_off_in, ret_off_out)
, where
ret
corresponds to the return
value of the system call,
ret_off_in
to the final input offset,
and
ret_off_out
to the final output offset.
val tee : (?assume_fd_is_nonblocking:bool ->
fd_in:Core.Unix.File_descr.t ->
fd_out:Core.Unix.File_descr.t ->
int -> flags -> int)
Core.Std.Or_error.t
tee ?assume_fd_is_nonblocking ~fd_in ~fd_out len flags
see man-page
for details.
RaisesUnix_error
on Unix-errors.
Invalid_argument
if the length is invalid
val vmsplice : (?assume_fd_is_nonblocking:bool ->
Core.Unix.File_descr.t ->
Core.Std.Bigstring.t Core.Unix.IOVec.t array ->
?count:int -> flags -> int)
Core.Std.Or_error.t
val bin_flag : flag Bin_prot.Type_class.t
val bin_read_flag : flag Bin_prot.Read_ml.reader
val bin_read_flag_ : flag Bin_prot.Unsafe_read_c.reader
val bin_read_flag__ : (int -> flag) Bin_prot.Unsafe_read_c.reader
val bin_reader_flag : flag Bin_prot.Type_class.reader
val bin_size_flag : flag Bin_prot.Size.sizer
val bin_write_flag : flag Bin_prot.Write_ml.writer
val bin_write_flag_ : flag Bin_prot.Unsafe_write_c.writer
val bin_writer_flag : flag Bin_prot.Type_class.writer
val flag_of_sexp : Sexplib.Sexp.t -> flag
val sexp_of_flag : flag -> Sexplib.Sexp.t
Type of Splice event flags
make_flags ar
Splice functions
splice ?assume_fd_is_nonblocking ~fd_in ?off_in ~fd_out ?off_out
~len flags
see man-page for details.
tee ?assume_fd_is_nonblocking ~fd_in ~fd_out len flags
see man-page
for details.
vmsplice ?assume_fd_is_nonblocking fd iovecs ?count flags
see man-page for details.