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
counter for byte array
counter for byte array
hi everyone, Please help me.
if i have a 3 or more bytes of array. then how would i increment the counter to reach to the last value stored in that array.
Thanks and regard
Shameem Ahamad
if i have a 3 or more bytes of array. then how would i increment the counter to reach to the last value stored in that array.
Thanks and regard
Shameem Ahamad
Re: counter for byte array
In JavaCard applet, you can do like this:
Code: Select all
case (byte)0x02:
byte temp[] = new byte[(short)20];
temp[(short)(temp.length -1)] = (byte)0x66;
Util.setShort(buf, (short)0, (short)temp.length);
Util.arrayCopy(temp, (short)0, buf, (short)2, (short)temp.length);
apdu.setOutgoingAndSend((short)0, (short)(2 + temp.length));
break;
Who is online
Users browsing this forum: No registered users and 75 guests