[gambit-list] uint16, uint32, etc.
Aditya Godbole
aag.lists at gmail.com
Wed Sep 22 11:22:54 EDT 2010
Hi,
I want to read and write integer values to a file. The file format
specifies the sizes of integer fields in number of bytes.
What is the best way to represent 2 and 4 byte integers? I could have
u32 and u16 vectors with 1 element, but is there a better way of doing
it? How do I handle endian-ness when I read and write to files (using
byteports).
-aditya
More information about the Gambit-list
mailing list