public interface FixedWidthType
Modifier and Type | Method and Description |
---|---|
int |
fixedSize()
The fixed amount of memory a value object instance of type t requires.
|
int fixedSize()
Implementations here may not be 100% accurate because sizes may vary between JVM implementations and then there is also stuff like padding and other JVM magic.
See also: https://blogs.oracle.com/jrose/entry/fixnums_in_the_vm http://www.javaworld.com/article/2077496/testing-debugging/java-tip-130--do-you-know-your-data-size-.html