Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

Why I new 1024 bytes memory, in fact used 1036 bytes?

JavaCard Applet Development Related Questions and Answers.
monter001
Posts: 5
Joined: Thu Aug 13, 2015 3:56 am
Points :2
Contact:

Why I new 1024 bytes memory, in fact used 1036 bytes?

Post by monter001 » Thu Aug 27, 2015 5:33 am

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?
You do not have the required permissions to view the files attached to this post. Please login first.

rena2019
Posts: 68
Joined: Thu Aug 20, 2015 4:16 pm
Points :1790
Contact:

Re: Why I new 1024 bytes memory, in fact used 1036 bytes?

Post by rena2019 » Fri Aug 28, 2015 3:54 am

because it also has to store the reference to the array - not only the array itself

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: Why I new 1024 bytes memory, in fact used 1036 bytes?

Post by UNKNwYSHSA » Sat Aug 29, 2015 11:05 pm

Additional informations of array, array length, array element type, and others.
sense and simplicity

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 53 guests

JavaCard OS : Disclaimer