Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Problem with integers too large

Author
Message
hakimfullmetal
9
Years of Service
User Offline
Joined: 17th Feb 2015
Location:
Posted: 9th Apr 2015 15:33 Edited at: 9th Apr 2015 15:37
So I was making AppGameKit read file sizes using GetFileSize().

Its working quite nicely with smaller files, but when the file size exceeds certain values, it just returned the file size as 0 byte.
This happened when I tried to read a file with the size of 4gb.
Files with normal sizes (9mb, ect) was read correctly.

I suppose this is the problem of the command using integer for their operation. The file size of 4Gb exceeds the integer range of -2147483648 to 2147483647 thus maybe producing an error.

Is there any workaround to read large file sizes correctly?

Login to post a reply

Server time is: 2024-11-25 20:33:16
Your offset time is: 2024-11-25 20:33:16