package batteries
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=e4b70d1a716f0aaba36f419f618d0a2e
sha512=a31f1f8cf2c7c3c6c757f3bfae98ff61bb32bab6a1f1e215937df42bcfa447aad41a37edb28d7bcecb88b3838ed8bd57142bcf8e2d28e09bb538055fd8a3b72d
doc/batteries.unthreaded/BatIO/BigEndian/index.html
Module BatIO.BigEndian
Same operations as module BatIO, but with big-endian encoding
This module redefines the operations of module BatIO which behave differently on big-endian inputs/outputs.
Generally, to use this module you will wish to either open both BatIO and BigEndian, so as to import a big-endian version of BatIO, as per open System.BatIO, BigEndian in ..., or to redefine locally BatIO to use big-endian encodings module BatIO = System.BatIO include BigEndian
val read_ui16 : input -> intRead an unsigned 16-bit word.
val read_i16 : input -> intRead a signed 16-bit word.
val read_i32 : input -> intRead a signed 32-bit integer.
val read_real_i32 : input -> int32Read a signed 32-bit integer as an OCaml int32.
val read_i64 : input -> int64Read a signed 64-bit integer as an OCaml int64.
val read_double : input -> floatRead an IEEE double precision floating point value.
val read_float : input -> floatRead an IEEE single precision floating point value.
val write_ui16 : (int, _) printerWrite an unsigned 16-bit word.
val write_i16 : (int, _) printerWrite a signed 16-bit word.
val write_i32 : (int, _) printerWrite a signed 32-bit integer.
val write_real_i32 : (int32, _) printerWrite an OCaml int32.
val write_i64 : (int64, _) printerWrite an OCaml int64.
val write_double : (float, _) printerWrite an IEEE double precision floating point value.
val write_float : (float, _) printerWrite an IEEE single precision floating point value.
Read an enumeration of signed 32-bit integers as OCaml int32s.
Read an enumeration of signed 64-bit integers as OCaml int64s.
Read an enumeration of IEEE double precision floating point values.