I want store a list of doubles and ints to a ByteBuffer, which asks for a size to allocate. I\'d like to write something like C\'s syntax
int size=numDouble*size
You can also use the sizeof4j library to get the sizeof the double you just need SizeOf.doubleSize()
SizeOf.doubleSize()