Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Zlib::GzipReader#ungetbyte
(::String | ::Integer arg0) -> ::NilClass
ungetbyte(p1)
ext/zlib/zlib.c
View on GitHub ↗
static VALUE
rb_gzreader_ungetbyte(VALUE obj, VALUE ch)
{
struct gzfile *gz = get_gzfile(obj);
gzfile_ungetbyte(gz, NUM2CHR(ch));
return Qnil;
}
See Zlib::GzipReader documentation for a description.