Question on apdu.getBuffer() and apdu.setIncomingAndReceive()
Hi,
I have some questions on methods of APDU class.
When we want to receive APDU, we first create a buffer to hold APDU command bytes.
For example: byte[] buf=apdu.getBuffer();
All of the APDU bytes we receive and send are all stored in this byte array.
Another method :apdu.setIncomingAndReceive() is used to recieve APDU and put it in buf[].
So if we want to handle APDU,we should first call this method. Otherwise the APDU in buf[] is still the last reveived APDU but not the current APDU we want to receive.
And we should call this method wherever we want to recieve current APDU.
Am I right?

