package int_repr

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

8-bit signed values

val get_int8 : Stdlib.Bytes.t -> pos:int -> int8

8-bit unsigned values

val get_uint8 : Stdlib.Bytes.t -> pos:int -> uint8

16-bit signed values

val get_int16_le : Stdlib.Bytes.t -> pos:int -> int16
val get_int16_be : Stdlib.Bytes.t -> pos:int -> int16

16-bit unsigned values

val get_uint16_le : Stdlib.Bytes.t -> pos:int -> uint16
val get_uint16_be : Stdlib.Bytes.t -> pos:int -> uint16

32-bit signed values

val get_int32_le : Stdlib.Bytes.t -> pos:int -> int32
val get_int32_be : Stdlib.Bytes.t -> pos:int -> int32

32-bit unsigned values

val get_uint32_le : Stdlib.Bytes.t -> pos:int -> uint32
val get_uint32_be : Stdlib.Bytes.t -> pos:int -> uint32

64-bit signed values

val get_int64_le : Stdlib.Bytes.t -> pos:int -> int64
val get_int64_be : Stdlib.Bytes.t -> pos:int -> int64

64-bit unsigned values

val get_uint64_le : Stdlib.Bytes.t -> pos:int -> uint64
val get_uint64_be : Stdlib.Bytes.t -> pos:int -> uint64
module Local : sig ... end
include Set with type t := Stdlib.Bytes.t

8-bit signed values

val set_int8 : Stdlib.Bytes.t -> pos:int -> int8 -> unit

8-bit unsigned values

val set_uint8 : Stdlib.Bytes.t -> pos:int -> uint8 -> unit

16-bit signed values

val set_int16_le : Stdlib.Bytes.t -> pos:int -> int16 -> unit
val set_int16_be : Stdlib.Bytes.t -> pos:int -> int16 -> unit

16-bit unsigned values

val set_uint16_le : Stdlib.Bytes.t -> pos:int -> uint16 -> unit
val set_uint16_be : Stdlib.Bytes.t -> pos:int -> uint16 -> unit

32-bit signed values

val set_int32_le : Stdlib.Bytes.t -> pos:int -> int32 -> unit
val set_int32_be : Stdlib.Bytes.t -> pos:int -> int32 -> unit

32-bit unsigned values

val set_uint32_le : Stdlib.Bytes.t -> pos:int -> uint32 -> unit
val set_uint32_be : Stdlib.Bytes.t -> pos:int -> uint32 -> unit

64-bit signed values

val set_int64_le : Stdlib.Bytes.t -> pos:int -> int64 -> unit
val set_int64_be : Stdlib.Bytes.t -> pos:int -> int64 -> unit

64-bit unsigned values

val set_uint64_le : Stdlib.Bytes.t -> pos:int -> uint64 -> unit
val set_uint64_be : Stdlib.Bytes.t -> pos:int -> uint64 -> unit
module Unsafe : sig ... end
OCaml

Innovation. Community. Security.