Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OmegaSDG Exam Binary File Format
- Contains blocks of format [type] [length] [data],
- Where type may be 01 for int or 02 for string.
- Length is the length in bytes, stored in hex.
- Blocks are present in the file consecutively.
- There are no delimiters between blocks or parts of blocks.
- The file begins with the ASCII magic number "OSDGTEST", which should be
- confirmed to exist and then ignored.
- Your parser should be able to read the provided file and print data, one block
- per line, in the following format:
- type(decimal), length(decimal), data
- The following then should be printed when your parser is finished:
- 01 02 25174
- 01 01 187
- 01 01 96
- 02 17 This is a string.
- 01 04 374629347
- 02 10 Also this.
Add Comment
Please, Sign In to add comment