class BinData::Base

def rel_offset

Returns the offset of this object wrt to its parent.
def rel_offset
  if @parent
    @parent.offset_of(self)
  else
    0
  end
end