Re: Structure size and binary format



gamehack wrote:
Thank you. That's why I wondered how to design a format, like .zip .jpg
etc :) Do you basically say that each 33 bytes would be one pixel, and
the value of red would be the first 11 bytes, green next 11 bytes, and
then last 11 bytes are going to be blue. And probably some fixed-size
headers at the end file(or probably using some sequence of bytes to
mark end of fields in the header). The problem is that I haven't seen
_any_ good resources about designing file formats. Any pointers?

<OT>

    Visit http://www.wotsit.org/ to find descriptions of
many file formats.  Some are binary, some are textual.  Some
are designed for portability, some are not.  In any event, a
review of what's already been done should give you some ideas.
Perhaps you'll even find an existing format that meets your
needs; if so, adopting it might make available whole suites of
helpful tools for dealing with it.

</OT>

--
Eric Sosman
esosmsn@xxxxxxxxxxxxxxxxxxx
.