Page 1 of 1

How to know the rest amount of memory in javacard

Posted: Wed Aug 19, 2015 8:00 am
by vermont
As the subject mentioned, how do I know the rest amount of memory that is available to my applet?

Re: How to know the rest amount of memory in javacard

Posted: Wed Aug 19, 2015 10:25 am
by UNKNwYSHSA
1 Ask the card provider;
2 Write an applet, use the api: JCSystem.getAvailableMemory(), this function can used to get size of RAM(COR or COD) and NVM; You can use the function as said in Javacard API specification; Notice: You can get an accurate value if there is only your applet in the card, and you call JCSystem.requestObjectDeletion() in a APDU before this APDU;

Re: How to know the rest amount of memory in javacard

Posted: Wed Aug 19, 2015 9:17 pm
by vermont
UNKNwYSHSA wrote:1 Ask the card provider;
2 Write an applet, use the api: JCSystem.getAvailableMemory(), this function can used to get size of RAM(COR or COD) and NVM; You can use the function as said in Javacard API specification; Notice: You can get an accurate value if there is only your applet in the card, and you call JCSystem.requestObjectDeletion() in a APDU before this APDU;


Hi,UNKNwYSHSA
Thank you for answer.