⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (353 Bytes)
Bug #4360
» t.rb
Test file for reading concatenated gzip streams -
drbrain (Eric Hodel)
, 02/03/2011 10:31 AM
require
'stringio'
require
'zlib'
zio
=
StringIO
.
new
io
=
Zlib
::
GzipWriter
.
new
zio
io
.
write
'aaaa'
io
.
finish
io
=
Zlib
::
GzipWriter
.
new
zio
io
.
write
'bbbb'
io
.
finish
zio
.
rewind
io
=
Zlib
::
GzipReader
.
new
zio
puts
io
.
read
unused
=
io
.
unused
io
.
finish
zio
.
pos
-=
unused
.
length
io
=
Zlib
::
GzipReader
.
new
zio
puts
io
.
read
unused
=
io
.
unused
io
.
finish
« Previous
1
2
Next »
(1-1/2)
Loading...