How to know the rest amount of memory in javacard
Posted: Wed Aug 19, 2015 8:00 am
As the subject mentioned, how do I know the rest amount of memory that is available to my applet?
JavaCardOS - JavaCardForum
https://www.javacardos.com/javacardforum/
https://www.javacardos.com/javacardforum/viewtopic.php?f=11&t=58
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;