Page 1 of 1

Unsigned Short in java card

Posted: Mon Jan 25, 2016 11:31 pm
by leogen
Hi there!
Is there any equivalent of the C type unsigned short in java card? i.e. 16 bit size and ranging from 0-65535?

Re: Unsigned Short in java card

Posted: Tue Jan 26, 2016 2:08 am
by UNKNwYSHSA
You can use int instead, and your card must support JCInt.
Or use short as value from 0x8000(-32767) to 0x7FFF(32767).