Method: BinData::Base#abs_offset
- Defined in:
- lib/bindata/base.rb
#abs_offset ⇒ Object
Returns the offset (in bytes) of this object with respect to its most distant ancestor.
214 215 216 217 218 219 220 |
# File 'lib/bindata/base.rb', line 214 def abs_offset if @parent @parent.abs_offset + @parent.offset_of(self) else 0 end end |