Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Zlib::GzipFile#os_code
() -> ::Integer
os_code
ext/zlib/zlib.c
View on GitHub ↗
static VALUE
rb_gzfile_os_code(VALUE obj)
{
return INT2FIX(get_gzfile(obj)->os_code);
}
Returns OS code number recorded in the gzip file header.