Advertisement
Guest User

read_fas.e

a guest
Dec 1st, 2019
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. -- this READ_FAS class is intended to read two files, one step at a time:
  2. -- index file(1.richmond) is loaded first, then its contents decoded into memory using a encryption<->decryption routine designed specifically for the index file itself.
  3. -- following that is the data file(2.toronto), which has most of its contents encrypted and packed (without using a compression algorithm at that) into, again, a data file. it, too, uses its own encryption<->decryption routine.
  4.  
  5. note
  6. description: "FILE ARCHIVAL HANDLER"
  7. author: ""
  8. date: "$Date$"
  9. revision: "$Revision$"
  10.  
  11. expanded class
  12. READ_FAS
  13.  
  14. create
  15. read_1_richmond
  16. --decrypt_1_richmond
  17. --create_array_from_1_richmond
  18. --check_if_file_exists
  19. --read_file_from_2_toronto
  20.  
  21. feature {NONE}
  22. read_1_richmond
  23. do
  24. create input_file_01.open_index("1.richmond")
  25.  
  26. input_file_01.close
  27. end
  28.  
  29. feature
  30.  
  31. --input_file_01: FILE
  32.  
  33. first_toc_number, second_toc_number, third_toc_number : INTEGER
  34. sector_size : INTEGER
  35. chunk_size : INTEGER
  36. once
  37. first_toc_number := 0x753aa9c
  38. second_toc_number := 0x45ce333
  39. third_toc_number := 0xc417d91
  40. sector_size := 0x400
  41. chunk_size := 0x30000
  42. end
  43.  
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement