adjustForField

fun adjustForField(sizeSoFar: Long, f: Field): Long

This method returns the maximum representation size of an object. sizeSoFar is the object's size measured so far. f is the field being probed.

The returned offset will be the maximum of whatever was measured so far and f field's offset and representation size (unaligned).