Return the size of an ODB object
This is the real size of the data buffer, not the actual size of the object.
data
the object
the size