package integers

  1. Overview
  2. Docs
Various signed and unsigned integer types for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

0.7.0.tar.gz
sha256=8bb517fa9a1818246eb8c4ce34ee1489fbebb4b92defa3a25d13cab8d23ec685
md5=201cf24143d7cb9a3921d572b6e6c42c

doc/integers/Unsigned/index.html

Module UnsignedSource

Types and operations for unsigned integers.

Sourcemodule type Infix = sig ... end

Infix names for the unsigned integer operations.

Sourcemodule type S = sig ... end

Unsigned integer operations.

Sourcemodule UChar : S with type t = private int

Unsigned char type and operations.

Sourcemodule UInt8 : S with type t = private int

Unsigned 8-bit integer type and operations.

Sourcemodule UInt16 : S with type t = private int

Unsigned 16-bit integer type and operations.

Sourcemodule UInt32 : sig ... end

Unsigned 32-bit integer type and operations.

Sourcemodule UInt64 : sig ... end

Unsigned 64-bit integer type and operations.

Sourcemodule Size_t : S

The size_t unsigned integer type and operations.

Sourcemodule UShort : S

The unsigned short integer type and operations.

Sourcemodule UInt : S

The unsigned int type and operations.

Sourcemodule ULong : S

The unsigned long integer type and operations.

Sourcemodule ULLong : S

The unsigned long long integer type and operations.

Sourcetype uchar = UChar.t

The unsigned char type.

Sourcetype uint8 = UInt8.t

Unsigned 8-bit integer type.

Sourcetype uint16 = UInt16.t

Unsigned 16-bit integer type.

Sourcetype uint32 = UInt32.t

Unsigned 32-bit integer type.

Sourcetype uint64 = UInt64.t

Unsigned 64-bit integer type.

Sourcetype size_t = Size_t.t

The size_t unsigned integer type.

Sourcetype ushort = UShort.t

The unsigned short unsigned integer type.

Sourcetype uint = UInt.t

The unsigned int type.

Sourcetype ulong = ULong.t

The unsigned long integer type.

Sourcetype ullong = ULLong.t

The unsigned long long integer type.

Sourceval of_byte_size : int -> (module S)

of_byte_size b is a module of type S that implements an unsigned type with b bytes.

Raise Invalid_argument if no suitable type is available.

OCaml

Innovation. Community. Security.