How to store java primitive types contents in RAM
Moderator: UNKNwYSHSA
How to store java primitive types contents in RAM
I have finished some java classes which contains some java primitive types(e.g. short, boolean). Because these contents are stored in EEPROM, it slows down my applet. I want to know how to store these contents in RAM in order to speed up my applet.
Re: How to store java primitive types contents in RAM
In order to store volatile objects, you can put the attributes in a transient array.
There is support for different types, e.g. boolean, byte and short.
The usual technique is to map values in a single transient byte array.
See the documentation about makeTransientByteArray in the JCSytem class.
There is support for different types, e.g. boolean, byte and short.
The usual technique is to map values in a single transient byte array.
See the documentation about makeTransientByteArray in the JCSytem class.
Who is online
Users browsing this forum: No registered users and 53 guests