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
Is there any way to find out how much memory size has my applet taken up?
Is there any way to find out how much memory size has my applet taken up?
Is there any way to find out how much memory size has my applet taken up?
can anyone help me ?
can anyone help me ?
Re: Is there any way to find out how much memory size has my applet taken up?
COR ? COD? Or Persistent Memory?
Re: Is there any way to find out how much memory size has my applet taken up?
You can write another applet to get your applet size, as following steps:
- 1, Get card memory size named M1;
- 2, Load your applet to the card and get card memory size named M2;
- 3, Your applet used memory size named M, and M = M1 - M2
- 1, Get card memory size named M1;
- 2, Load your applet to the card and get card memory size named M2;
- 3, Your applet used memory size named M, and M = M1 - M2
Re: Is there any way to find out how much memory size has my applet taken up?
Ponele wrote:COR ? COD? Or Persistent Memory?
I want to get the three types of memory size.
Re: Is there any way to find out how much memory size has my applet taken up?
Tolice wrote:You can write another applet to get your applet size, as following steps:
- 1, Get card memory size named M1;
- 2, Load your applet to the card and get card memory size named M2;
- 3, Your applet used memory size named M, and M = M1 - M2
Thanks, But how can I get the card memory size?
Re: Is there any way to find out how much memory size has my applet taken up?
You can using the function of JCSystem.getAvailableMemory(byte memoryType) to obtains the amount of memory of the specified type.
Re: Is there any way to find out how much memory size has my applet taken up?
There are two API functions relating with MEMORY SIZE in following (which is v1 and v2 that copy from package javacard.framework.JCSystem ).
v1:public static short getAvailableMemory(byte memoryType) throws SystemException //javacard 2.2.2
v2:public static void getAvailableMemory(short[] buffer, short offset,byte memoryType)throws SystemException //javacard 3.0 classic
v1:public static short getAvailableMemory(byte memoryType) throws SystemException //javacard 2.2.2
v2:public static void getAvailableMemory(short[] buffer, short offset,byte memoryType)throws SystemException //javacard 3.0 classic
Who is online
Users browsing this forum: No registered users and 78 guests