Re: Structure size and binary format
- From: Eric Sosman <esosman@xxxxxxxxxxxxxxxxxxx>
- Date: Sat, 31 Dec 2005 15:13:52 -0500
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 .
- References:
- Structure size and binary format
- From: gamehack
- Re: Structure size and binary format
- From: Chuck F.
- Re: Structure size and binary format
- From: Eric Sosman
- Re: Structure size and binary format
- From: gamehack
- Structure size and binary format
- Prev by Date: Re: An Link Error
- Next by Date: Re: An Link Error
- Previous by thread: Re: Structure size and binary format
- Next by thread: Re: Structure size and binary format
- Index(es):