package eio

  1. Overview
  2. Docs

Little endian serializers

val uint16 : t -> int -> unit

uint16 t n copies the lower 16 bits of n into the serializer's internal buffer in little-endian byte order.

val uint32 : t -> int32 -> unit

uint32 t n copies n into the serializer's internal buffer in little-endian byte order.

val uint48 : t -> int64 -> unit

uint48 t n copies the lower 48 bits of n into the serializer's internal buffer in little-endian byte order.

val uint64 : t -> int64 -> unit

uint64 t n copies n into the serializer's internal buffer in little-endian byte order.

val float : t -> float -> unit

float t n copies the lower 32 bits of n into the serializer's internal buffer in little-endian byte order.

val double : t -> float -> unit

double t n copies n into the serializer's internal buffer in little-endian byte order.

OCaml

Innovation. Community. Security.