package orsetto

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

The functions in this module offer fast unsafe operations that provide correct behavior only when the parameters are valid, i.e. when the position and length are valid for the string or byte sequence, and when integer and float quantities are valid for the specific external representation.

include module type of Cf_endian_core.Unsafe_octet

Include this module to include operations single-octet types.

val lds8 : string -> int -> int

Use lds8 s i to get the signed 8-bit integer at i in s.

val ldu8 : string -> int -> int

Use ldu8 s i to get the unsigned 8-bit integer at i in s.

val sts8 : int -> bytes -> int -> unit

Use sts8 n b i to set the octet at i in b to n. The prodedure is not defined for integers -128 <= n <= 127.

val stu8 : int -> bytes -> int -> unit

Use sts8 n b i to set the octet at i in b to n. The prodedure is not defined for integers 0 <= n <= 255.

val descript : string
val lds16 : string -> int -> int
val ldu16 : string -> int -> int
val lds32 : string -> int -> int
val ldu32 : string -> int -> int
val lds64 : string -> int -> int
val ldu64 : string -> int -> int
val ldi32 : string -> int -> int32
val ldi64 : string -> int -> int64
val ldi32_boxed : string -> int -> int32
val ldi64_boxed : string -> int -> int64
val sts16 : int -> bytes -> int -> unit
val stu16 : int -> bytes -> int -> unit
val sts32 : int -> bytes -> int -> unit
val stu32 : int -> bytes -> int -> unit
val sts64 : int -> bytes -> int -> unit
val stu64 : int -> bytes -> int -> unit
val sti32 : int32 -> bytes -> int -> unit
val sti64 : int64 -> bytes -> int -> unit
val sti32_boxed : int32 -> bytes -> int -> unit
val sti64_boxed : int64 -> bytes -> int -> unit
OCaml

Innovation. Community. Security.