Used to calculate the record sizes for a particular record. This kind of
sucks because it's similar to the SST serialization code. In general
the SST serialization code needs to be rewritten.
Author:
Glen Stampoultzis (glens at apache.org), Jason Height (jheight at apache.org)