package containers-data

  1. Overview
  2. Docs
A set of advanced datatypes for containers

Install

Dune Dependency

Authors

Maintainers

Sources

containers-3.16.tbz
sha256=1e7992cb2e59c0d2290d1b6c3a31531b3f310be6170b8ef3dde17ccd876b5b79
sha512=bb124e69ad0690f88393e18eee499be07761e767593558867aab32f643466b43258ced503170b154ca3b56dbd68987abd6d9438cf473707ec9866511589a5b84

doc/containers-data/CCBitField/Make/index.html

Module CCBitField.MakeSource

Create a new bitfield type

Parameters

Signature

Sourcetype t = private int

Generative type of bitfields. Each instantiation of the functor should create a new, incompatible type

Sourceval empty : t

Empty bitfields (all bits 0).

Sourcetype field
Sourceval get : field -> t -> bool

Get the value of this field.

Sourceval set : field -> bool -> t -> t

Set the value of this field.

Sourceval mk_field : unit -> field

Make a new field.

Sourceval freeze : unit -> unit

Prevent new fields from being added. From now on, creating a field will raise Frozen.

Sourceval total_width : unit -> int

Current width of the bitfield.

OCaml

Innovation. Community. Security.