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
confused with the API methods
confused with the API methods
I am a little confused with the methods receiveBytes(short bOff) and sendBytesLong(byte[] outData, short bOff, short len).
1. receiveBytes(short bOff)
For this method, is it used to receive data and put it into APDU buffer, starting at the offset bOff?
2.sendBytesLong(byte[] outData, short bOff, short len)
Why does this method send data directly from the array "outData"? Don't you need to copy it into APDU buffer firstly?
Thanks
1. receiveBytes(short bOff)
For this method, is it used to receive data and put it into APDU buffer, starting at the offset bOff?
2.sendBytesLong(byte[] outData, short bOff, short len)
Why does this method send data directly from the array "outData"? Don't you need to copy it into APDU buffer firstly?
Thanks
Re: confused with the API methods
receiveBytes(short bOff) is to receive data from card OS and store it in APDU buffer.
You can send byte array directly via sendBytesLong(byte[] outData, short bOff, short len). I mean you don't have to copy data to APDU buffer first.
You can send byte array directly via sendBytesLong(byte[] outData, short bOff, short len). I mean you don't have to copy data to APDU buffer first.
Re: confused with the API methods
receiveBytes(short bOff) method retrieves data from the card OS and populates the APDU buffer.
You don't have to copy data to APDU buffer because the JCRE does the copy for you.
You don't have to copy data to APDU buffer because the JCRE does the copy for you.
Who is online
Users browsing this forum: No registered users and 32 guests