Module: BinData::IO::Common::UnSeekableStream
- Defined in:
- lib/bindata/io.rb
Overview
Manually keep track of offset for unseekable streams.
Instance Method Summary collapse
-
#num_bytes_remaining ⇒ Object
The number of bytes remaining in the input stream.
- #offset_raw ⇒ Object
Instance Method Details
#num_bytes_remaining ⇒ Object
The number of bytes remaining in the input stream.
111 112 113 |
# File 'lib/bindata/io.rb', line 111 def num_bytes_remaining raise IOError, "stream is unseekable" end |
#offset_raw ⇒ Object
106 107 108 |
# File 'lib/bindata/io.rb', line 106 def offset_raw @offset end |