module CCBigstring:sig
..end
bigstring
instead.
status: deprecated, do not use anymore
typet =
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t
val create : int -> t
val empty : t
val init : int -> (int -> char) -> t
val fill : t -> char -> unit
val size : t -> int
val length : t -> int
size
.val get : t -> int -> char
val set : t -> int -> char -> unit
val blit : t -> int -> t -> int -> int -> unit
val copy : t -> t
val sub : t -> int -> int -> t
sub s i len
takes a slice of length len
from the string s
, starting
at offset i
.Invalid_argument
if i, len
doesn't designate a valid substringval fold : ('a -> char -> 'a) -> 'a -> t -> 'a
val iter : (char -> unit) -> t -> unit
val equal : t -> t -> bool
val compare : t -> t -> int
val to_bytes : t -> Bytes.t
val of_bytes : Bytes.t -> t
val of_bytes_slice : Bytes.t -> int -> int -> t
val sub_bytes : t -> int -> int -> Bytes.t
val blit_to_bytes : t -> int -> Bytes.t -> int -> int -> unit
val blit_of_bytes : Bytes.t -> int -> t -> int -> int -> unit
val to_string : t -> string
val of_string : string -> t
val of_string_slice : string -> int -> int -> t
val sub_string : t -> int -> int -> string
val blit_of_string : string -> int -> t -> int -> int -> unit
type'a
gen =unit -> 'a option
type'a
sequence =('a -> unit) -> unit
type'a
printer =Format.formatter -> 'a -> unit
val to_seq : t -> char sequence
val to_gen : t -> char gen
val to_seq_slice : t -> int -> int -> char sequence
val to_gen_slice : t -> int -> int -> char gen
val print : t printer
val with_map_file : ?pos:int64 ->
?len:int ->
?mode:int ->
?flags:Pervasives.open_flag list ->
?shared:bool -> string -> (t -> 'a) -> 'a
with_map_file name f
maps the file into memory, opening it, and
call f
with a slice pos.... pos+len
of the bytes of the file
where len
is the length of the file if not provided.
When f
returns, the file is closed.pos
: offset in the file (default 0)mode
: the mode for the file, if it's createdflags
: opening flags (default rdonly)
see Bigarray.Array1.map_file
for more detailsshared
: if true, modifications are shared between processes that
have mapped this file (requires the filedescr to be open in write mode).val map_file_descr : ?pos:int64 -> ?shared:bool -> Unix.file_descr -> int -> t
map_file_descr descr len
is a lower-level access to an underlying file descriptor.shared
: if true, modifications are shared between processes that
have mapped this file (requires the filedescr to be open in write mode).
see Bigarray.Array1.map_file
for more details