in reply to Re^2: C types and SV's
in thread C types and SV's and unpack
I'm aware of that, so my translation was mostly what the C code said. The C code is not portable for exactly the reason you cite, because the word size may vary (with the advent of 64-bit architectures) again. If I were to really implement a tiff reader, I would look at the documentation again, or at existing implementations, to make sure that reading the data reads the number of bytes and treats them correctly. I'm sure that for TIFF, there is a definition of endianness, and then one could switch to the Nn or Vv unpack templates instead of using the architecture dependent Ii templates.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: C types and SV's
by DrHyde (Prior) on Jul 19, 2010 at 10:47 UTC | |
by blakew (Monk) on Jul 19, 2010 at 20:14 UTC | |
by DrHyde (Prior) on Jul 20, 2010 at 10:03 UTC |