module Bigstring:sig..end
typet =(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t
exception IOError of int * exn
The occurred exception (e.g. Unix_error, End_of_file)
val create : int -> tcreate lengthlength.val of_string : ?pos:int -> ?len:int -> string -> tof_string ?pos ?len strlen in str starting at position pos.pos : default = 0len : default = String.length str - posval to_string : ?pos:int -> ?len:int -> t -> stringval check_args : loc:string -> t -> pos:int -> len:int -> unitval get_opt_len : t -> pos:int -> int option -> intval length : t -> intlength bstrbstr.val sub : ?pos:int -> ?len:int -> t -> tsub ?pos ?len bstrbstr that start
at position pos and has length len.pos : default = 0len : default = Bigstring.length bstr - posval is_mmapped : t -> boolis_mmapped bstrbstr is
memory-mapped.val blit : ?src_pos:int ->
src:t -> ?dst_pos:int -> dst:t -> int -> unitval blit_string_bigstring : ?src_pos:int -> string -> ?dst_pos:int -> t -> len:int -> unitval blit_bigstring_string : ?src_pos:int -> t -> ?dst_pos:int -> string -> len:int -> unitval read : ?min_len:int -> Unix.file_descr -> ?pos:int -> ?len:int -> t -> intval really_read : Unix.file_descr -> ?pos:int -> ?len:int -> t -> unitval really_recv : Unix.file_descr -> ?pos:int -> ?len:int -> t -> unitval read_assume_nonblocking : Unix.file_descr -> ?pos:int -> ?len:int -> t -> intval input : ?min_len:int ->
Pervasives.in_channel -> ?pos:int -> ?len:int -> t -> intval really_input : Pervasives.in_channel -> ?pos:int -> ?len:int -> t -> unitval really_write : Unix.file_descr -> ?pos:int -> ?len:int -> t -> unitval really_send_no_sigpipe : Unix.file_descr -> ?pos:int -> ?len:int -> t -> unitval send_nonblocking_no_sigpipe : Unix.file_descr -> ?pos:int -> ?len:int -> t -> int optionval write : Unix.file_descr -> ?pos:int -> ?len:int -> t -> intval write_assume_nonblocking : Unix.file_descr -> ?pos:int -> ?len:int -> t -> intval writev : Unix.file_descr -> ?count:int -> t Unix_ext.IOVec.t array -> intval writev_assume_nonblocking : Unix.file_descr -> ?count:int -> t Unix_ext.IOVec.t array -> intval output : ?min_len:int ->
Pervasives.out_channel -> ?pos:int -> ?len:int -> t -> intval really_output : Pervasives.out_channel -> ?pos:int -> ?len:int -> t -> unitval map_file : shared:bool -> Unix.file_descr -> int -> tmap_file shared fd n memory-maps n characters of the data
associated with descriptor fd to a bigstring. Iff shared is
true, all changes to the bigstring will be reflected in the file.val load_file : ?pos:int -> ?len:int -> string -> tval store_file : ?create:bool ->
?exclusive:bool ->
?append:bool ->
?perm:int -> string -> ?pos:int -> ?len:int -> t -> unitstore_file ?create ?exclusive ?append ?perm fname ?pos ?len bstr
store len bytes starting at position pos of bigstring bstr
in file fname using the appropriate flags for opening (creation,
exclusivity, appending, permissions).create : default = trueexclusive : default = trueappend : default = trueperm : default = 0o600pos : default = 0len : default = length bstr - posval unsafe_blit : src_pos:int ->
src:t -> dst_pos:int -> dst:t -> len:int -> unitunsafe_blit ~src_pos ~src ~dst_pos ~dst ~len similar to
Bigstring.blit, but does not perform any bounds checks. Will crash
on bounds errors!val unsafe_blit_string_bigstring : src_pos:int -> string -> dst_pos:int -> t -> len:int -> unitunsafe_blit_string_bigstring_stub ~src_pos str ~dst_pos bstr ~len
similar to Bigstring.blit_string_bigstring, but does not perform
any bounds checks. Will crash on bounds errors!val unsafe_blit_bigstring_string : src_pos:int -> t -> dst_pos:int -> string -> len:int -> unitunsafe_blit_bigstring_string ~src_pos bstr ~dst_pos str ~len
similar to Bigstring.blit_bigstring_string, but does not perform
any bounds checks. Will crash on bounds errors!val unsafe_read_assume_nonblocking : Unix.file_descr -> pos:int -> len:int -> t -> intunsafe_read_assume_nonblocking fd ~pos ~len bstr
similar to Bigstring.read_assume_nonblocking, but does
not perform any bounds checks. Will crash on bounds errors!val unsafe_write : Unix.file_descr -> pos:int -> len:int -> t -> intunsafe_write fd ~pos ~len bstr similar to
Bigstring.write, but does not perform any bounds checks.
Will crash on bounds errors!val unsafe_write_assume_nonblocking : Unix.file_descr -> pos:int -> len:int -> t -> intunsafe_write_assume_nonblocking fd ~pos ~len bstr
similar to Bigstring.write_assume_nonblocking, but does
not perform any bounds checks. Will crash on bounds errors!val unsafe_read : min_len:int -> Unix.file_descr -> pos:int -> len:int -> t -> intunsafe_read ~min_len fd ~pos ~len bstr similar to
Bigstring.read, but does not perform any bounds checks.
Will crash on bounds errors!val unsafe_really_recv : Unix.file_descr -> pos:int -> len:int -> t -> unitunsafe_really_recv sock ~pos ~len bstr similar to
Bigstring.really_recv, but does not perform any
bounds checks. Will crash on bounds errors!val unsafe_input : min_len:int ->
Pervasives.in_channel -> pos:int -> len:int -> t -> intunsafe_input ~min_len ic ~pos ~len bstr similar to
Bigstring.input, but does not perform any bounds checks.
Will crash on bounds errors!val unsafe_really_write : Unix.file_descr -> pos:int -> len:int -> t -> unitunsafe_really_write fd ~pos ~len bstr similar to
Bigstring.write, but does not perform any bounds checks.
Will crash on bounds errors!val unsafe_really_send_no_sigpipe : Unix.file_descr -> pos:int -> len:int -> t -> unitunsafe_really_send_no_sigpipe sock ~pos ~len bstr
similar to Bigstring.send, but does not perform any
bounds checks. Will crash on bounds errors!val unsafe_send_nonblocking_no_sigpipe : Unix.file_descr -> pos:int -> len:int -> t -> int optionunsafe_send_nonblocking_no_sigpipe sock ~pos ~len bstr similar to
Bigstring.send_nonblocking_no_sigpipe, but does not perform any
bounds checks. Will crash on bounds errors!val unsafe_output : min_len:int ->
Pervasives.out_channel -> pos:int -> len:int -> t -> intunsafe_output ~min_len oc ~pos ~len bstr similar to
Bigstring.output, but does not perform any bounds checks.
Will crash on bounds errors!val unsafe_writev : Unix.file_descr -> t Unix_ext.IOVec.t array -> int -> intunsafe_writev fd iovecs count similar to
Bigstring.writev, but does not perform any bounds checks.
Will crash on bounds errors!val unsafe_sendmsg_nonblocking_no_sigpipe : Unix.file_descr -> t Unix_ext.IOVec.t array -> int -> intunsafe_sendmsg_nonblocking_no_sigpipe fd iovecs count
similar to Bigstring.sendmsg_nonblocking_no_sigpipe, but
does not perform any bounds checks. Will crash on bounds errors!val sendmsg_nonblocking_no_sigpipe : Unix.file_descr -> ?count:int -> t Unix_ext.IOVec.t array -> int