Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Zlib::GzipReader#rewind
() -> ::Integer
rewind
ext/zlib/zlib.c
View on GitHub ↗
static VALUE
rb_gzreader_rewind(VALUE obj)
{
struct gzfile *gz = get_gzfile(obj);
gzfile_reader_rewind(gz);
return INT2FIX(0);
}
Resets the position of the file pointer to the point created the GzipReader object. The associated IO object needs to respond to the seek method.