RE: OpenMG file formats
"Howard Chu" <[email protected]>
| Newsgroups | gmane.comp.audio.netmd.devel |
|---|---|
| Message-ID | <021b01c2bd8c$50806ca0$0e01a8c0@CELLO> |
This looks pretty much like ASN.1. Have you tried an off-the-shelf ASN.1 parser on any of this yet? (Try Kerberos5, OpenSSL, OpenLDAP, among others, for ASN.1 libraries...) > The basic format is quite simple from what I can make > out > > 30 80 marks the begining of an array > > 00 00 marks the end of an array > > other markers > 02 appears to denote an integer > 04 is often a string (although it is also used > for large data entries such as the audio data > > in an omg file > 06 again often appears to be a string although > not always > > all entries then consit of two bytes. > first byte is the type of the entry. > second byte is the length of the entry > > the following bytes are the entry > > for example > 02 04 00 0F 42 40 > > 02 marks an integer > 04 says its four bytes long > 00 0F 42 40 is the data (1000000 (dec)) -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource Development and Support