package hardcaml

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

Module Make.Make_combSource

Parameters

module Comb : Comb.S

Signature

Sourcetype comb = Comb.t
Sourcetype t = comb X.t
Sourceval sexp_of_t : comb X.t -> Sexplib0.Sexp.t
Sourceval assert_widths : comb X.t -> Base.unit

Raise if the widths of t do not match those specified in the interface.

Sourceval of_int : Base.int -> comb X.t

Each field is set to the constant integer value provided.

Sourceval const : Base.int -> comb X.t
  • deprecated [since 2019-11] interface const
Sourceval pack : ?rev:Base.bool -> comb X.t -> comb

Pack interface into a vector.

Sourceval unpack : ?rev:Base.bool -> comb -> comb X.t

Unpack interface from a vector.

Multiplex a list of interfaces.

Sourceval mux2 : comb -> comb X.t -> comb X.t -> comb X.t
Sourceval concat : comb X.t Base.list -> comb X.t

Concatenate a list of interfaces.

Sourceval priority_select_with_default : ((comb, comb X.t) Comb.with_valid2 Base.list -> default:comb X.t -> comb X.t) Comb.optional_branching_factor
Sourceval widths : t -> Base.int X.t

Actual bit widths of each field.

Sourceval of_ints : Base.int X.t -> t

consts c sets each field to the integer value in c using the declared field bit width.

Sourceval consts : Base.int X.t -> t
  • deprecated [since 2019-11] interface consts
OCaml

Innovation. Community. Security.