package fast_bitvector

  1. Overview
  2. Docs

Module Fast_bitvectorSource

Sourcetype t
include Sexplib0.Sexpable.S with type t := t
Sourceval t_of_sexp : Sexplib0.Sexp.t -> t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval max_length : int
Sourceval create : len:int -> t
Sourceval create_full : len:int -> t
module type Ops := sig ... end
Sourcemodule Unsafe : Ops with type with_result := dst:t -> unit

dst specifies the destination bitvector of the operation, for inplace operations, specify one of the operands as dst `

include Ops with type with_result := dst:t -> unit
Sourceval set : t -> int -> unit
Sourceval clear : t -> int -> unit
Sourceval set_to : t -> int -> bool -> unit
Sourceval get : t -> int -> bool
Sourceval equal : t -> t -> bool
Sourceval not : t -> dst:t -> unit
Sourceval and_ : t -> t -> dst:t -> unit
Sourceval or_ : t -> t -> dst:t -> unit
Sourceval xor : t -> t -> dst:t -> unit
Sourcemodule Set : sig ... end
Sourcemodule Allocate : sig ... end
Sourcemodule Bit_zero_first : sig ... end
Sourcemodule Bit_zero_last : sig ... end
Sourceval length : t -> int
Sourceval copy : t -> t
Sourceval append : t -> t -> t
Sourceval fold : init:'a -> f:('a -> bool -> 'a) -> t -> 'a
Sourceval map : t -> f:(bool -> bool) -> t
Sourceval popcount : t -> int
Sourceval set_all : t -> unit
Sourceval clear_all : t -> unit
Sourceval is_empty : t -> bool
Sourceval is_full : t -> bool
OCaml

Innovation. Community. Security.