package lwt

  1. Overview
  2. Docs
Promises and event-driven I/O

Install

Dune Dependency

Authors

Maintainers

Sources

5.4.0.zip
md5=fc4721bdb1a01225b96e3a2debde95fa
sha512=e427f08223b77f9af696c9e6f90ff68e27e02e446910ef90d3da542e7b00bf23dd191ac77c1871288faa2289f8d28fc2f44efc3d3fe9165fe1c7a6be88ee49ff

doc/lwt.unix/Lwt_io/LE/index.html

Module Lwt_io.LESource

Reading/writing of numbers in little-endian

Reading

Sourceval read_int : input_channel -> int Lwt.t

Reads a 32-bits integer as an ocaml int

Sourceval read_int16 : input_channel -> int Lwt.t
Sourceval read_int32 : input_channel -> int32 Lwt.t
Sourceval read_int64 : input_channel -> int64 Lwt.t
Sourceval read_float32 : input_channel -> float Lwt.t

Reads an IEEE single precision floating point value

Sourceval read_float64 : input_channel -> float Lwt.t

Reads an IEEE double precision floating point value

Writing

Sourceval write_int : output_channel -> int -> unit Lwt.t

Writes an ocaml int as a 32-bits integer

Sourceval write_int16 : output_channel -> int -> unit Lwt.t
Sourceval write_int32 : output_channel -> int32 -> unit Lwt.t
Sourceval write_int64 : output_channel -> int64 -> unit Lwt.t
Sourceval write_float32 : output_channel -> float -> unit Lwt.t

Writes an IEEE single precision floating point value

Sourceval write_float64 : output_channel -> float -> unit Lwt.t

Writes an IEEE double precision floating point value

OCaml

Innovation. Community. Security.

On This Page
  1. Reading
  2. Writing