diff options
Diffstat (limited to 'genisoimage/endianconv.h')
-rw-r--r-- | genisoimage/endianconv.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/genisoimage/endianconv.h b/genisoimage/endianconv.h new file mode 100644 index 0000000..2337cf9 --- /dev/null +++ b/genisoimage/endianconv.h @@ -0,0 +1,27 @@ +/* + * endian_conv.h + * + * Copyright (c) 2004-2006 Steve McIntyre <steve@einval.com> + * + * Simple helper routines for marshalling data - prototypes + * + * GNU GPL v2 + */ + +void write_be64(unsigned long long in, unsigned char *out); +unsigned long long read_be64(unsigned char *in); +void write_le64(unsigned long long in, unsigned char *out); +unsigned long long read_le64(unsigned char *in); + +void write_le48(unsigned long long in, unsigned char *out); +unsigned long long read_le48(unsigned char *in); + +void write_be32(unsigned long in, unsigned char *out); +unsigned long read_be32(unsigned char *in); +void write_le32(unsigned long in, unsigned char *out); +unsigned long read_le32(unsigned char *in); + +void write_be16(unsigned short in, unsigned char *out); +unsigned short read_be16(unsigned char *in); +void write_le16(unsigned short in, unsigned char *out); +unsigned short read_le16(unsigned char *in); |