Entry.Pack
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 int array
| Asciis of string
| Shorts of int array
| Longs of int64 array
| Rationals of (int64 * int64) array
| SBytes of int array
| Undefined of string
| SShorts of int array
| SLongs of int32 array
| SRationals of (int32 * int32) array
| Floats of float array
| Doubles of float array
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.
unpack format components packed
components
packed
val format : Stdlib.Format.formatter -> unpacked -> unit