/* * See Zlib::GzipReader documentation for a description. */ static VALUE rb_gzreader_getc(obj) VALUE obj; { struct gzfile *gz = get_gzfile(obj); VALUE dst; dst = gzfile_read(gz, 1); if (!NIL_P(dst)) { dst = INT2FIX((unsigned int)(RSTRING(dst)->ptr[0]) & 0xff); } return dst; }