JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
Why I new 1024 bytes memory, in fact used 1036 bytes?
Why I new 1024 bytes memory, in fact used 1036 bytes?
I use JCIDE to debug Applet.
First, I find the NVM memory is 0x00035D10; and I new a 1024 bytes memory, there only remain 0x00035904, that means I used 1036 bytes memory.
The previous memory is:
When I used " byte[] buffer = new byte[1024]; ", the remaining memory is:
Why?
First, I find the NVM memory is 0x00035D10; and I new a 1024 bytes memory, there only remain 0x00035904, that means I used 1036 bytes memory.
The previous memory is:
When I used " byte[] buffer = new byte[1024]; ", the remaining memory is:
Why?
You do not have the required permissions to view the files attached to this post. Please login first.
Re: Why I new 1024 bytes memory, in fact used 1036 bytes?
because it also has to store the reference to the array - not only the array itself
- UNKNwYSHSA
- Posts: 630
- Joined: Thu May 21, 2015 4:05 am
- Points :3055
- Contact:
Re: Why I new 1024 bytes memory, in fact used 1036 bytes?
Additional informations of array, array length, array element type, and others.
sense and simplicity
Who is online
Users browsing this forum: No registered users and 22 guests