Module: BinData::IO::Common::UnSeekableStream

Defined in:
lib/bindata/io.rb

Overview

Manually keep track of offset for unseekable streams.

Instance Method Summary collapse

Instance Method Details

#num_bytes_remainingObject

The number of bytes remaining in the input stream.

Raises:

  • (IOError)


111
112
113
# File 'lib/bindata/io.rb', line 111

def num_bytes_remaining
  raise IOError, "stream is unseekable"
end

#offset_rawObject



106
107
108
# File 'lib/bindata/io.rb', line 106

def offset_raw
  @offset
end