package devkit

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Devkit_core.UnsafeBitSetSource

Sourcetype t
Sourceval create : int -> t

Create an empty bitset with an initial size (in number of bits).

Sourceval copy : t -> t

Copy a bitset : further modifications of first one will not affect the copy.

Sourceval set : t -> int -> unit

set s n sets the nth-bit in the bitset s to true.

Sourceval unset : t -> int -> unit

unset s n sets the nth-bit in the bitset s to false.

Sourceval put : t -> bool -> int -> unit

put s v n sets the nth-bit in the bitset s to v.

Sourceval toggle : t -> int -> unit

toggle s n changes the nth-bit value in the bitset s.

Sourceval is_set : t -> int -> bool

is_set s n returns true if nth-bit in the bitset s is set, or false otherwise.

OCaml

Innovation. Community. Security.