How to know the rest amount of memory in javacard
Moderator: UNKNwYSHSA
How to know the rest amount of memory in javacard
As the subject mentioned, how do I know the rest amount of memory that is available to my applet?
- UNKNwYSHSA
- Posts: 630
- Joined: Thu May 21, 2015 4:05 am
- Points :3053
- Contact:
Re: How to know the rest amount of memory in javacard
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;
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;
sense and simplicity
Re: How to know the rest amount of memory in javacard
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.
Who is online
Users browsing this forum: No registered users and 54 guests