Files

Class/Module Index [+]

Quicksearch

BinData::IO::Read::UnSeekableStream

Manually keep track of offset for unseekable streams.

Public Instance Methods

num_bytes_remaining() click to toggle source

The number of bytes remaining in the input stream.

# File lib/bindata/io.rb, line 232
def num_bytes_remaining
  raise IOError, "stream is unseekable"
end
offset() click to toggle source

Returns the current offset of the io stream. The exact value of the offset when reading bitfields is not defined.

# File lib/bindata/io.rb, line 227
def offset
  @read_count ||= 0
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.