Method: Zip::InputStream#rewind
- Defined in:
- lib/zip/input_stream.rb
#rewind ⇒ Object
Rewinds the stream to the beginning of the current entry
96 97 98 99 100 101 102 103 |
# File 'lib/zip/input_stream.rb', line 96 def rewind return if @currentEntry.nil? @lineno = 0 @pos = 0 @archiveIO.seek(@currentEntry.local_header_offset, IO::SEEK_SET) open_entry end |