Method: Zlib::GzipReader#ungetbyte

Defined in:
zlib.c

#ungetbyte(ch) ⇒ Object

See Zlib::GzipReader documentation for a description.



4262
4263
4264
4265
4266
4267
4268
# File 'zlib.c', line 4262

static VALUE
rb_gzreader_ungetbyte(VALUE obj, VALUE ch)
{
    struct gzfile *gz = get_gzfile(obj);
    gzfile_ungetbyte(gz, NUM2CHR(ch));
    return Qnil;
}