package data-encoding

  1. Overview
  2. Docs

Integers with the same ranges, restrictions, and representations as above. The endianness is explicitly (rather than implicitly) big.

val int16 : int encoding
val uint16 : int encoding
val int31 : int encoding
val int32 : int32 encoding
val int64 : int64 encoding
val ranged_int : int -> int -> int encoding
OCaml

Innovation. Community. Security.