/*
* Same as IO.
*/
static VALUE
rb_gzwriter_write(obj, str)
VALUE obj, str;
{
struct gzfile *gz = get_gzfile(obj);
if (TYPE(str) != T_STRING) {
str = rb_obj_as_string(str);
}
gzfile_write(gz, RSTRING(str)->ptr, RSTRING(str)->len);
return INT2FIX(RSTRING(str)->len);
}