Guest User

Untitled

a guest
Oct 20th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. OmegaSDG Exam Binary File Format
  2.  
  3. Contains blocks of format [type] [length] [data],
  4. Where type may be 01 for int or 02 for string.
  5. Length is the length in bytes, stored in hex.
  6. Blocks are present in the file consecutively.
  7. There are no delimiters between blocks or parts of blocks.
  8.  
  9. The file begins with the ASCII magic number "OSDGTEST", which should be
  10. confirmed to exist and then ignored.
  11.  
  12. Your parser should be able to read the provided file and print data, one block
  13. per line, in the following format:
  14.  
  15. type(decimal), length(decimal), data
  16.  
  17.  
  18. The following then should be printed when your parser is finished:
  19.  
  20. 01 02 25174
  21. 01 01 187
  22. 01 01 96
  23. 02 17 This is a string.
  24. 01 04 374629347
  25. 02 10 Also this.
Add Comment
Please, Sign In to add comment