2013年9月15日星期日

[Android] Java How to test Int, char, boolean bytes ?

C / C + + can be sizeof
Java in how to test . . .
------ Solution ---------------------------------------- ----
not need to test it
with C / C + + different , java in the number of bytes int char boolean seemingly is fixed, independent of the hardware platform and system
int, 32 -bit, 4 -byte
char 16 bits, 2 bytes
boolen, 8 bits 1 byte
------ eference -------------------------- -------------
no public API it
------ eference ------------------- --------------------
1L positive solution . JVM as is fixed. JNI under reference C / C + + byte type .
------ eference --------------------------------------- < br> Thank you, I have found a way , JAVA in which there is a macro can , be solved. .
------ eference --------------------------------------- < br> very much like to know how will java inside a macro ?

没有评论:

发表评论