package integers

  1. Overview
  2. Docs

Module SignedSource

Types and operations for signed integers.

Sourcemodule type Infix = sig ... end
Sourcemodule type S = sig ... end

Signed integer operations

Sourcemodule Int : S with type t = int

Signed integer type and operations.

Sourcemodule Int32 : S with type t = int32

Signed 32-bit integer type and operations.

Sourcemodule Int64 : S with type t = int64

Signed 64-bit integer type and operations.

Sourcemodule SInt : S

C's signed integer type and operations.

Sourcemodule Long : S

The signed long integer type and operations.

Sourcemodule LLong : S

The signed long long integer type and operations.

Sourcetype sint = SInt.t

C's signed integer type.

Sourcetype long = Long.t

The signed long integer type.

Sourcetype llong = LLong.t

The signed long long integer type.

Sourceval of_byte_size : int -> (module S)

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

Raise Invalid_argument if no suitable type is available.

OCaml

Innovation. Community. Security.