Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- this READ_FAS class is intended to read two files, one step at a time:
- -- 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.
- -- 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.
- note
- description: "FILE ARCHIVAL HANDLER"
- author: ""
- date: "$Date$"
- revision: "$Revision$"
- expanded class
- READ_FAS
- create
- read_1_richmond
- --decrypt_1_richmond
- --create_array_from_1_richmond
- --check_if_file_exists
- --read_file_from_2_toronto
- feature {NONE}
- read_1_richmond
- do
- create input_file_01.open_index("1.richmond")
- input_file_01.close
- end
- feature
- --input_file_01: FILE
- first_toc_number, second_toc_number, third_toc_number : INTEGER
- sector_size : INTEGER
- chunk_size : INTEGER
- once
- first_toc_number := 0x753aa9c
- second_toc_number := 0x45ce333
- third_toc_number := 0xc417d91
- sector_size := 0x400
- chunk_size := 0x30000
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement