lib/bindata/io.rb
# Returns the current offset of the io stream.  The exact value of
# the offset when reading bitfields is not defined.
Returns the current offset of the io stream.  The exact value of
the offset when reading bitfields is not defined.
Returns the current offset of the io stream . The exact value of the offset when reading bitfields is not defined .
def offset
      if positioning_supported?
        @raw_io.pos - @initial_pos
      else
        0
      end
    end
def offset if positioning_supported? @raw_io . pos - @initial_pos else 0 end end
Returns the current offset of the io stream.
Returns the current offset of the io stream .