On 6/19/2020 11:16 PM, Reinhard Kotucha wrote:
Hi,
it's nice that with the fio library LuaTeX can now process binary
files. What I'm missing is the ability to specify the byte order
(little vs. big endian).
I didn't find any hint, neither in the manual nor in the sources.
Without being able to specify the byte order usage of the library is
quite limited. The byte order of a particular file is not necessarily
the same as that of your system.
Some file formats have a certain byte order (PNM, for instance) and
others precede binary data with a byte order mark (TIFF). In any case
it's necessary to specify the byte order before reading binary stuff.
Is there a chance to provide a switch?
When I have time I'll backport a couple of the additional
[integer|cardinal]*_le ones that we have in luametatex (I though that
i'd already done that).
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------