Interface IPrimitiveSizes
- All Known Implementing Classes:
PrimitiveSizes
Get the sizes of common primitives. The sizes are returned in bytes.
-
Method Summary
Modifier and TypeMethodDescriptionintRetrieve the size ofchar.intRetrieve the size ofdouble.intRetrieve the size offloat.intRetrieve the size ofint.intRetrieve the size oflong double.intRetrieve the size oflong long.intRetrieve the size oflong.intRetrieve the size ofshort.
-
Method Details
-
getCharSize
int getCharSize()Retrieve the size ofchar.- Returns:
- size in bytes
-
getShortSize
int getShortSize()Retrieve the size ofshort.- Returns:
- size in bytes
-
getIntSize
int getIntSize()Retrieve the size ofint.- Returns:
- size in bytes
-
getLongSize
int getLongSize()Retrieve the size oflong.- Returns:
- size in bytes
-
getLongLongSize
int getLongLongSize()Retrieve the size oflong long.- Returns:
- size in bytes
-
getFloatSize
int getFloatSize()Retrieve the size offloat.- Returns:
- size in bytes
-
getDoubleSize
int getDoubleSize()Retrieve the size ofdouble.- Returns:
- size in bytes
-
getLongDoubleSize
int getLongDoubleSize()Retrieve the size oflong double.- Returns:
- size in bytes
-