Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

I have a question about API getAvailableMemory

JavaCard Applet Development Related Questions and Answers.
BirdKing
Posts: 86
Joined: Wed Nov 04, 2015 7:23 am
Points :656
Contact:

I have a question about API getAvailableMemory

Post by BirdKing » Fri Sep 14, 2018 6:10 am

Hello,
I have a question about API getAvailableMemory in JC304.
The API has three parameters: a short array, offset and memoryType. The short array is used to store 32 bits number. My question is: the 32 bits number is an unsigned number? And how to calculate the total memory? total memory = array[0]*array[1] or total memory = array[0]*32767 + array[1] ?

DaHuFa
Posts: 53
Joined: Mon Jun 04, 2018 5:07 am
Points :392
Contact:

Re: I have a question about API getAvailableMemory

Post by DaHuFa » Sat Sep 15, 2018 11:03 pm

First, in Java, there is no unsigned number. So it must be a signed number.
Second, array indicates a big number. conjecture according to general carry, it should be total memory = array[0]*32767 + array[1].

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 55 guests

JavaCard OS : Disclaimer