Casper v1.0.1 reads data from the file into memory in one chunk. Therefore the maximum filesize that can be transmitted is limited to the amount of memory that is available to the memory manager using NewHandle with flags $C018.
The NewHandle call is assumed to succeed and data from the file is loaded into memory at the location indicated in the handle whether it is valid or not!
This code needs to check for errors with the NewHandle and abort if there are any.
Code could also be improved to get the file in a number of chunks if the file is larger than handle size.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=257705
Originator: YES
Casper v1.0.1 reads data from the file into memory in one chunk. Therefore the maximum filesize that can be transmitted is limited to the amount of memory that is available to the memory manager using NewHandle with flags $C018.
The NewHandle call is assumed to succeed and data from the file is loaded into memory at the location indicated in the handle whether it is valid or not!
This code needs to check for errors with the NewHandle and abort if there are any.
Code could also be improved to get the file in a number of chunks if the file is larger than handle size.