class BinData::Base

def rel_offset

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