![]() | Library Documentation | Structures | Signatures | Identifiers | Packages | About |
PACK_REAL (basis)Operations for packing and unpacking real values.
structure PackRealLittle : PACK_REAL (basis) structure PackRealBig : PACK_REAL (basis)
signature PACK_REAL =
sig
type real
val bytesPerElem : int
val isBigEndian : bool
val toBytes : real -> Word8Vector.vector
val fromBytes : Word8Vector.vector -> real
val subVec : Word8Vector.vector * int -> real
val subArr : Word8Array.array * int -> real
val update : Word8Array.array * int * real -> unit
end
seq[bytesPerElem*i..bytesPerElem*(i+1)-1]
of the aggregate seq and convert it into a real value according to the
endianness of the structure. They raise the Subscript exception if i <
0 or if Word8Array.length seq < bytesPerElem * (i + 1).