On Fri, May 29, 2009 at 03:38:25PM +0200, s.ferey wrote: > Sébastien Lorquet a écrit : > >just some remarks > > > > >-new Truc() creates an eeprom object. To get a RAM object, create it as > >a local variable and give this local variable as a parameter to other > >methods that will use it. > > you are not very precise, if "create it" means allocate a new Truc(), > it always occurs in EEPROM, the only local variables that are allocated > from the RAM stack are the integer types (so byte, short) and > references. >
There are also a few array allocation APIs available such as javacard.framework.JCSystem.makeTransientXxxxArray(), where Xxxx is Boolean, Byte, Short or Object (Int is available in another package in JC 2.2.2). -- This message is hastily written, please ignore any unpleasant wordings, do not consider it a binding commitment, even if its phrasing may indicate so. Its contents may be deliberately or accidentally untrue. Trademarks and other things belong to their owners, if any. _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
