`sig
type t = Core_kernel.Std.Bigstring.t
val equal : t Core_kernel.Equal.equal
val create : ?max_mem_waiting_gc:Core_kernel.Byte_units.t -> int -> t
val init : int -> f:(int -> char) -> t
val of_string : ?pos:int -> ?len:int -> string -> t
val to_string : ?pos:int -> ?len:int -> t -> string
val check_args : loc:string -> pos:int -> len:int -> t -> unit
val get_opt_len : t -> pos:int -> int option -> int
val length : t -> int
val sub_shared : ?pos:int -> ?len:int -> t -> t
external get : t -> int -> char = "%caml_ba_ref_1"
external set : t -> int -> char -> unit = "%caml_ba_set_1"
external is_mmapped : t -> bool = "bigstring_is_mmapped_stub" "noalloc"
val blit : (t, t) Core_kernel.Blit_intf.blit
val blito : (t, t) Core_kernel.Blit_intf.blito
val unsafe_blit : (t, t) Core_kernel.Blit_intf.blit
val sub : (t, t) Core_kernel.Blit_intf.sub
val subo : (t, t) Core_kernel.Blit_intf.subo
module To_string :
sig
val blit : (t, string) Core_kernel.Blit_intf.blit
val blito : (t, string) Core_kernel.Blit_intf.blito
val unsafe_blit : (t, string) Core_kernel.Blit_intf.blit
val sub : (t, string) Core_kernel.Blit_intf.sub
val subo : (t, string) Core_kernel.Blit_intf.subo
end
module From_string :
sig
val blit : (string, t) Core_kernel.Blit_intf.blit
val blito : (string, t) Core_kernel.Blit_intf.blito
val unsafe_blit : (string, t) Core_kernel.Blit_intf.blit
val sub : (string, t) Core_kernel.Blit_intf.sub
val subo : (string, t) Core_kernel.Blit_intf.subo
end
val write_bin_prot :
t -> ?pos:int -> 'a Bin_prot.Type_class.writer -> 'a -> int
val read_bin_prot :
t ->
?pos:int ->
?len:int ->
'a Bin_prot.Type_class.reader -> ('a * int) Core_kernel.Or_error.t
val read_bin_prot_verbose_errors :
t ->
?pos:int ->
?len:int ->
'a Bin_prot.Type_class.reader ->
[ `Invalid_data of Core_kernel.Error.t
| `Not_enough_data
| `Ok of 'a * int ]
val map_file : shared:bool -> Unix.file_descr -> int -> t
val find : ?pos:int -> ?len:int -> char -> t -> int option
external unsafe_destroy : t -> unit = "bigstring_destroy_stub"
val unsafe_get_int8 : t -> pos:int -> int
val unsafe_set_int8 : t -> pos:int -> int -> unit
val unsafe_get_uint8 : t -> pos:int -> int
val unsafe_set_uint8 : t -> pos:int -> int -> unit
val unsafe_get_int16_le : t -> pos:int -> int
val unsafe_get_int16_be : t -> pos:int -> int
val unsafe_set_int16_le : t -> pos:int -> int -> unit
val unsafe_set_int16_be : t -> pos:int -> int -> unit
val unsafe_get_uint16_le : t -> pos:int -> int
val unsafe_get_uint16_be : t -> pos:int -> int
val unsafe_set_uint16_le : t -> pos:int -> int -> unit
val unsafe_set_uint16_be : t -> pos:int -> int -> unit
val unsafe_get_int32_le : t -> pos:int -> int
val unsafe_get_int32_be : t -> pos:int -> int
val unsafe_set_int32_le : t -> pos:int -> int -> unit
val unsafe_set_int32_be : t -> pos:int -> int -> unit
val unsafe_get_uint32_le : t -> pos:int -> int
val unsafe_get_uint32_be : t -> pos:int -> int
val unsafe_set_uint32_le : t -> pos:int -> int -> unit
val unsafe_set_uint32_be : t -> pos:int -> int -> unit
val unsafe_get_int64_le_exn : t -> pos:int -> int
val unsafe_get_int64_be_exn : t -> pos:int -> int
val unsafe_set_int64_le : t -> pos:int -> int -> unit
val unsafe_set_int64_be : t -> pos:int -> int -> unit
val unsafe_get_int64_le_trunc : t -> pos:int -> int
val unsafe_get_int64_be_trunc : t -> pos:int -> int
val unsafe_get_int32_t_le : t -> pos:int -> Int32.t
val unsafe_get_int32_t_be : t -> pos:int -> Int32.t
val unsafe_set_int32_t_le : t -> pos:int -> Int32.t -> unit
val unsafe_set_int32_t_be : t -> pos:int -> Int32.t -> unit
val unsafe_get_int64_t_le : t -> pos:int -> Int64.t
val unsafe_get_int64_t_be : t -> pos:int -> Int64.t
val unsafe_set_int64_t_le : t -> pos:int -> Int64.t -> unit
val unsafe_set_int64_t_be : t -> pos:int -> Int64.t -> unit
val get_tail_padded_fixed_string :
padding:char -> t -> pos:int -> len:int -> unit -> string
val set_tail_padded_fixed_string :
padding:char -> t -> pos:int -> len:int -> string -> unit
val compare : t -> t -> int
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
val bin_t : t Bin_prot.Type_class.t
val bin_read_t : t Bin_prot.Read.reader
val __bin_read_t__ : (int -> t) Bin_prot.Read.reader
val bin_reader_t : t Bin_prot.Type_class.reader
val bin_size_t : t Bin_prot.Size.sizer
val bin_write_t : t Bin_prot.Write.writer
val bin_writer_t : t Bin_prot.Type_class.writer
exception IOError of int * exn
val read :
?min_len:int -> Unix.file_descr -> ?pos:int -> ?len:int -> t -> int
val really_read : Unix.file_descr -> ?pos:int -> ?len:int -> t -> unit
val really_recv : Unix.file_descr -> ?pos:int -> ?len:int -> t -> unit
val recvfrom_assume_fd_is_nonblocking :
Unix.file_descr -> ?pos:int -> ?len:int -> t -> int * Unix.sockaddr
val read_assume_fd_is_nonblocking :
Unix.file_descr -> ?pos:int -> ?len:int -> t -> Syscall_result.Int.t
val pread_assume_fd_is_nonblocking :
Unix.file_descr -> offset:int -> ?pos:int -> ?len:int -> t -> int
val input :
?min_len:int -> Pervasives.in_channel -> ?pos:int -> ?len:int -> t -> int
val really_input :
Pervasives.in_channel -> ?pos:int -> ?len:int -> t -> unit
val really_write : Unix.file_descr -> ?pos:int -> ?len:int -> t -> unit
val really_send_no_sigpipe :
(Unix.file_descr -> ?pos:int -> ?len:int -> t -> unit)
Core_kernel.Std.Or_error.t
val send_nonblocking_no_sigpipe :
(Unix.file_descr -> ?pos:int -> ?len:int -> t -> Syscall_result.Int.t)
Core_kernel.Std.Or_error.t
val sendto_nonblocking_no_sigpipe :
(Unix.file_descr ->
?pos:int -> ?len:int -> t -> Unix.sockaddr -> Syscall_result.Int.t)
Core_kernel.Std.Or_error.t
val write : Unix.file_descr -> ?pos:int -> ?len:int -> t -> int
val pwrite_assume_fd_is_nonblocking :
Unix.file_descr -> offset:int -> ?pos:int -> ?len:int -> t -> int
val write_assume_fd_is_nonblocking :
Unix.file_descr -> ?pos:int -> ?len:int -> t -> int
val writev :
Unix.file_descr -> ?count:int -> t Core_unix.IOVec.t array -> int
val writev_assume_fd_is_nonblocking :
Unix.file_descr -> ?count:int -> t Core_unix.IOVec.t array -> int
val recvmmsg_assume_fd_is_nonblocking :
(Unix.file_descr ->
?count:int ->
?srcs:Unix.sockaddr array ->
t Core_unix.IOVec.t array -> lens:int array -> int)
Core_kernel.Std.Or_error.t
val sendmsg_nonblocking_no_sigpipe :
(Unix.file_descr -> ?count:int -> t Core_unix.IOVec.t array -> int option)
Core_kernel.Std.Or_error.t
val output :
?min_len:int ->
Pervasives.out_channel -> ?pos:int -> ?len:int -> t -> int
val really_output :
Pervasives.out_channel -> ?pos:int -> ?len:int -> t -> unit
external unsafe_read_assume_fd_is_nonblocking :
Unix.file_descr -> pos:int -> len:int -> t -> Syscall_result.Int.t
= "bigstring_read_assume_fd_is_nonblocking_stub"
external unsafe_write : Unix.file_descr -> pos:int -> len:int -> t -> int
= "bigstring_write_stub"
external unsafe_write_assume_fd_is_nonblocking :
Unix.file_descr -> pos:int -> len:int -> t -> int
= "bigstring_write_assume_fd_is_nonblocking_stub"
external unsafe_read :
min_len:int -> Unix.file_descr -> pos:int -> len:int -> t -> int
= "bigstring_read_stub"
external unsafe_really_recv :
Unix.file_descr -> pos:int -> len:int -> t -> unit
= "bigstring_really_recv_stub"
external unsafe_really_write :
Unix.file_descr -> pos:int -> len:int -> t -> unit
= "bigstring_really_write_stub"
val unsafe_really_send_no_sigpipe :
(Unix.file_descr -> pos:int -> len:int -> t -> unit)
Core_kernel.Std.Or_error.t
val unsafe_send_nonblocking_no_sigpipe :
(Unix.file_descr -> pos:int -> len:int -> t -> Syscall_result.Int.t)
Core_kernel.Std.Or_error.t
external unsafe_writev :
Unix.file_descr -> t Core_unix.IOVec.t array -> int -> int
= "bigstring_writev_stub"
val unsafe_sendmsg_nonblocking_no_sigpipe :
(Unix.file_descr -> t Core_unix.IOVec.t array -> int -> int option)
Core_kernel.Std.Or_error.t
external unsafe_input :
min_len:int -> Pervasives.in_channel -> pos:int -> len:int -> t -> int
= "bigstring_input_stub"
external unsafe_output :
min_len:int -> Pervasives.out_channel -> pos:int -> len:int -> t -> int
= "bigstring_output_stub"
end`