class BinData::Base

def rel_offset

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