How to send int
Posted: Sun Jun 18, 2017 10:52 pm
In my applet, there are some int variable. And I want to send these int variable. But I don't know how. How can I send int variable?
I only know how to send bytes.
I only know how to send bytes.
Code: Select all
private void mySend(APDU apdu) {
byte[] buffer = apdu.getBuffer();
apdu.setOutgoing();
short totalBytes = (short) out.length;
apdu.setOutgoingLength(totalBytes);
apdu.sendBytesLong(out, (short) 0, (short) out.length);
}