Android Question How to uses a SubArray2 function (B4XBytesBuilder class) if the index parameter need to be a long type?

prbmjr

Active Member
Licensed User
Hi Everyone!

I have a problem, I'm using the class B4XBytesBuilder and the function SubArray2 , but I have a situation that the arrays that I have to treat could be very large, and i need to use a long type for the index instead of a int type in the parameters of the function and the function only use a int type , how can I solve this?
 

prbmjr

Active Member
Licensed User
How large are your arrays? The largest int = 2,147,483,647 = 2GB. The process will run out off available memory with such array.

Hi Erel,

This have a explanation, I had to convert a app (python) to encrypt files, my app should be a cross platform app, and could be used to encrypt a video for example, and could be handle files more than 2 gb. Off course this size of arrays does not for a normal device like phone or tablet, it´s for a desktop computers. How can I handle with this?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…