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
How to understand java card atomic?
How to understand java card atomic?
How to understand java card atomic?Could anybody give a detail instance to explain?
Re: How to understand java card atomic?
https://www.javacardos.com/wiki/javacar ... es/storage
try this sample
Code: Select all
JCSystem.beginTransaction();
//Copies an array from the 'buf' source array, beginning at the ISO7816.OFFSET_CDATA position(non-atomically).
Util.arrayCopyNonAtomic(buf, ISO7816.OFFSET_CDATA, tmpMemory, (short)0, lc);
//Copies an array from the 'tmpMemory' source array, beginning at the 0 position
Util.arrayCopy(tmpMemory, (short)0, buf, (short)0, lc);
//Commits an atomic transaction. The contents of commit buffer is atomically committed.
JCSystem.commitTransaction();
apdu.setOutgoingAndSend((short)0, (short)lc);
well
Who is online
Users browsing this forum: No registered users and 70 guests