module Pack:sig
..end
type
format =
| |
ILLEGAL |
(* |
do not used it
| *) |
| |
BYTE |
|||
| |
ASCII |
|||
| |
SHORT |
|||
| |
LONG |
|||
| |
RATIONAL |
|||
| |
SBYTE |
|||
| |
UNDEFINED |
|||
| |
SSHORT |
|||
| |
SLONG |
|||
| |
SRATIONAL |
|||
| |
FLOAT |
|||
| |
DOUBLE |
val string_of_format : format -> string
type
unpacked =
| |
Bytes of |
|||
| |
Asciis of |
|||
| |
Shorts of |
|||
| |
Longs of |
|||
| |
Rationals of |
|||
| |
SBytes of |
|||
| |
Undefined of |
|||
| |
SShorts of |
|||
| |
SLongs of |
|||
| |
SRationals of |
|||
| |
Floats of |
|||
| |
Doubles of |
(* |
Constructors start with "S" are signed.
| *) |
val unpack : format -> int -> string -> unpacked
unpack format components packed
components
are the number of elements in packed
,
not the bytes of packed
.val format : Format.formatter -> unpacked -> unit