diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-02-06 10:11:31 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-02-06 10:11:31 (GMT) |
commit | 0bbc8e714795d00f12edbaec48fd76aa1d3cd26e (patch) | |
tree | 376dd00270c8069e6e744333ee53579d8a3b59a8 /src/lib/tng_io.h | |
parent | 2303245ac2c7085545c90e39efd75e4c634c5c8f (diff) |
Flags to indicate endianness of files. Functions to swith to little endian
Diffstat (limited to 'src/lib/tng_io.h')
-rw-r--r-- | src/lib/tng_io.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/tng_io.h b/src/lib/tng_io.h index ec5971e..b2d07ff 100644 --- a/src/lib/tng_io.h +++ b/src/lib/tng_io.h @@ -255,6 +255,10 @@ __typeof__ (b) _b = (b); \ _a > _b ? _a : _b; }) +/** Flag to specify the endianness of a TNG file */ +typedef enum {TNG_BIG_ENDIAN, + TNG_LITTLE_ENDIAN} tng_file_endianness; + /** Flag to specify the endianness of 32 bit values of the current architecture. * Output is always converted to big endian */ typedef enum {TNG_BIG_ENDIAN_32, |