package uwt

  1. Overview
  2. Docs
On This Page
  1. Reading
  2. Writing
libuv bindings

Install

dune-project
 Dependency

Authors

Maintainers

Sources

uwt-0.3.0.tar.gz
sha256=e924c3f80906c44871c62870d9472956ff043a14a4c17e886302bf47e6ca71e1
md5=f611099ba6eae6ea3f6b46a21e30effc

doc/uwt.ext/Uwt_io/LE/index.html

Module Uwt_io.LE

Reading/writing of numbers in little-endian

Reading

val read_int : input_channel -> int Lwt.t

Reads a 32-bits integer as an ocaml int

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

Reads an IEEE single precision floating point value

val read_float64 : input_channel -> float Lwt.t

Reads an IEEE double precision floating point value

Writing

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

Writes an ocaml int as a 32-bits integer

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

Writes an IEEE single precision floating point value

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

Writes an IEEE double precision floating point value