class BinData::Buffer

def raw_num_bytes

The number of bytes used, ignoring the padding imposed by the buffer.
def raw_num_bytes
  @type.num_bytes
end