module Bitv: sig end
Bitvector constants.
type t
val create : int -> bool -> t
val init : int -> (int -> bool) -> t
val set : t -> int -> bool -> unit
val get : t -> int -> bool
val length : t -> int
val equal : t -> t -> bool
val max_length : int
val copy : t -> t
val append : t -> t -> t
val concat : t list -> t
val sub : t -> int -> int -> t
Parameters: |
v |
: |
t
|
ofs |
: |
int
|
len |
: |
int
|
|
val fill : t -> int -> int -> bool -> unit
Parameters: |
v |
: |
t
|
ofs |
: |
int
|
len |
: |
int
|
b |
: |
bool
|
|
val blit : t -> int -> t -> int -> int -> unit
Parameters: |
v1 |
: |
t
|
ofs1 |
: |
int
|
v2 |
: |
t
|
ofs2 |
: |
int
|
len |
: |
int
|
|
val iter : (bool -> unit) -> t -> unit
val map : (bool -> bool) -> t -> t
val iteri : (int -> bool -> unit) -> t -> unit
Parameters: |
f |
: |
int -> bool -> unit
|
v |
: |
t
|
|
val mapi : (int -> bool -> bool) -> t -> t
Parameters: |
f |
: |
int -> bool -> bool
|
v |
: |
t
|
|
val fold_left : ('a -> bool -> 'a) -> 'a -> t -> 'a
Parameters: |
f |
: |
'a -> bool -> 'a
|
x |
: |
'a
|
v |
: |
t
|
|
val fold_right : (bool -> 'a -> 'a) -> t -> 'a -> 'a
Parameters: |
f |
: |
bool -> 'a -> 'a
|
v |
: |
t
|
x |
: |
'a
|
|
val bw_and : t -> t -> t
val bw_or : t -> t -> t
val bw_xor : t -> t -> t
val bw_not : t -> t
val shiftl : t -> int -> t
val shiftr : t -> int -> t
val all_zeros : t -> bool
val all_ones : t -> bool
val to_string : t -> string
val from_string : string -> t
val unsafe_set : t -> int -> bool -> unit
val unsafe_get : t -> int -> bool