package int_repr

  1. Overview
  2. Docs
include Get with type t := String.t

8-bit signed values

val get_int8 : String.t -> pos:int -> int8

8-bit unsigned values

val get_uint8 : String.t -> pos:int -> uint8

16-bit signed values

val get_int16_le : String.t -> pos:int -> int16
val get_int16_be : String.t -> pos:int -> int16

16-bit unsigned values

val get_uint16_le : String.t -> pos:int -> uint16
val get_uint16_be : String.t -> pos:int -> uint16

32-bit signed values

val get_int32_le : String.t -> pos:int -> int32
val get_int32_be : String.t -> pos:int -> int32

32-bit unsigned values

val get_uint32_le : String.t -> pos:int -> uint32
val get_uint32_be : String.t -> pos:int -> uint32

64-bit signed values

val get_int64_le : String.t -> pos:int -> int64
val get_int64_be : String.t -> pos:int -> int64

64-bit unsigned values

val get_uint64_le : String.t -> pos:int -> uint64
val get_uint64_be : String.t -> pos:int -> uint64
OCaml

Innovation. Community. Security.