module BigEndian:Same operations as modulesig
..end
BatIO
, but with big-endian encodingBatIO
which behave
differently on big-endian input
s/output
s.
Generally, to use this module you will wish to either open both
BatIO
and BatIO.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 : BatIO.input -> int
val read_i16 : BatIO.input -> int
val read_i32 : BatIO.input -> int
Overflow
if the
read integer cannot be represented as a Caml 31-bit integer.val read_real_i32 : BatIO.input -> int32
val read_i64 : BatIO.input -> int64
val read_double : BatIO.input -> float
val read_float : BatIO.input -> float
val write_ui16 : 'a BatIO.output -> int -> unit
val write_i16 : 'a BatIO.output -> int -> unit
val write_i32 : 'a BatIO.output -> int -> unit
val write_real_i32 : 'a BatIO.output -> int32 -> unit
val write_i64 : 'a BatIO.output -> int64 -> unit
val write_double : 'a BatIO.output -> float -> unit
val write_float : 'a BatIO.output -> float -> unit
val ui16s_of : BatIO.input -> int BatEnum.t
val i16s_of : BatIO.input -> int BatEnum.t
val i32s_of : BatIO.input -> int BatEnum.t
Overflow
if the
read integer cannot be represented as a Caml 31-bit integer.val real_i32s_of : BatIO.input -> int32 BatEnum.t
int32
s.val i64s_of : BatIO.input -> int64 BatEnum.t
int64
s.val doubles_of : BatIO.input -> float BatEnum.t
val write_bytes : 'a BatIO.output -> int BatEnum.t -> unit
val write_ui16s : 'a BatIO.output -> int BatEnum.t -> unit
val write_i16s : 'a BatIO.output -> int BatEnum.t -> unit
val write_i32s : 'a BatIO.output -> int BatEnum.t -> unit
val write_real_i32s : 'a BatIO.output -> int32 BatEnum.t -> unit
val write_i64s : 'a BatIO.output -> int64 BatEnum.t -> unit
val write_doubles : 'a BatIO.output -> float BatEnum.t -> unit