Hardcaml_kernel.ConstantSourceRepresentation of variable width Constants and conversion to/from OCaml types.
include Ppx_compare_lib.Comparable.S__local with type t := tinclude Ppx_compare_lib.Equal.S__local with type t := tinclude Sexplib0.Sexpable.S with type t := tinclude Sexplib0.Sexpable.Of_sexp with type t := tinclude Sexplib0.Sexpable.Sexp_of with type t := tinclude Bin_prot.Binable.S with type t := tinclude Bin_prot.Binable.S_only_functions with type t := tinclude sig ... endThis function only needs implementation if t exposed to be a polymorphic variant. Despite what the type reads, this does *not* produce a function after reading; instead it takes the constructor tag (int) before reading and reads the rest of the variant t afterwards.
Convert to an arbitrary precision integer.
Convert to a hex encoded string.
Convert a string containing '1' and '0' characters to a constant. Width is inferred from the strings length.
Create from a hex encoded string.
Create from an octal encoded string.
Utility conversion functions to/from hex chars
Create constant conversion functions from lists of some inner Bit.t type.
Convert to from constants from raw bit patterns stored in strings and bytes. Data is copied and resized as appropriate.