Ruby
2.0.0p247(2013-06-27revision41674)
|
Go to the source code of this file.
Data Structures | |
struct | zstream |
struct | zstream::zstream_funcs |
struct | zstream_run_args |
struct | gzfile |
struct | new_wrap_arg_t |
Definition at line 1443 of file zlib.c.
Referenced by rb_deflate_deflate().
Definition at line 1439 of file zlib.c.
Referenced by rb_deflate_initialize(), rb_deflate_params(), rb_deflate_s_deflate(), and rb_gzwriter_initialize().
#define ARG_MEMLEVEL | ( | val | ) | FIXNUMARG((val), DEF_MEM_LEVEL) |
Definition at line 1441 of file zlib.c.
Referenced by rb_deflate_initialize().
Definition at line 1442 of file zlib.c.
Referenced by rb_deflate_initialize(), rb_deflate_params(), and rb_gzwriter_initialize().
Definition at line 1440 of file zlib.c.
Referenced by rb_deflate_initialize(), and rb_inflate_initialize().
Definition at line 392 of file zlib.c.
Referenced by gzfile_calc_crc(), and gzfile_write().
#define DEF_MEM_LEVEL MAX_MEM_LEVEL |
Definition at line 42 of file zlib.c.
Referenced by Init_zlib(), and rb_gzwriter_initialize().
#define FIXNUMARG | ( | val, | |
ifnil | |||
) |
Definition at line 1435 of file zlib.c.
Referenced by rb_deflate_flush(), and rb_gzwriter_flush().
#define GZ_EXTRAFLAG_FAST 0x4 |
Definition at line 2157 of file zlib.c.
Referenced by gzfile_make_header(), and gzfile_read_header().
#define GZ_EXTRAFLAG_SLOW 0x2 |
Definition at line 2158 of file zlib.c.
Referenced by gzfile_make_header(), and gzfile_read_header().
#define GZ_FLAG_COMMENT 0x10 |
Definition at line 2153 of file zlib.c.
Referenced by gzfile_make_header(), and gzfile_read_header().
#define GZ_FLAG_ENCRYPT 0x20 |
Definition at line 2154 of file zlib.c.
Referenced by gzfile_read_header().
#define GZ_FLAG_EXTRA 0x4 |
Definition at line 2151 of file zlib.c.
Referenced by gzfile_read_header().
#define GZ_FLAG_MULTIPART 0x2 |
Definition at line 2150 of file zlib.c.
Referenced by gzfile_read_header().
#define GZ_FLAG_ORIG_NAME 0x8 |
Definition at line 2152 of file zlib.c.
Referenced by gzfile_make_header(), and gzfile_read_header().
#define GZ_FLAG_UNKNOWN_MASK 0xc0 |
Definition at line 2155 of file zlib.c.
Referenced by gzfile_read_header().
#define GZ_MAGIC1 0x1f |
Definition at line 2147 of file zlib.c.
Referenced by gzfile_make_header(), and gzfile_read_header().
#define GZ_MAGIC2 0x8b |
Definition at line 2148 of file zlib.c.
Referenced by gzfile_make_header(), and gzfile_read_header().
#define GZ_METHOD_DEFLATE 8 |
Definition at line 2149 of file zlib.c.
Referenced by gzfile_make_header(), and gzfile_read_header().
#define GZFILE_CBUF_CAPA 10 |
Definition at line 2209 of file zlib.c.
Referenced by gzfile_getc().
#define GZFILE_FLAG_FOOTER_FINISHED (ZSTREAM_FLAG_UNUSED << 2) |
Definition at line 2213 of file zlib.c.
Referenced by gzfile_check_footer(), gzfile_fill(), gzfile_getc(), gzfile_make_footer(), gzfile_read_all(), gzfile_reader_end_run(), gzfile_reader_get_unused(), and gzfile_readpartial().
#define GZFILE_FLAG_HEADER_FINISHED (ZSTREAM_FLAG_UNUSED << 1) |
Definition at line 2212 of file zlib.c.
Referenced by gzfile_make_header(), gzfile_write(), gzfile_writer_end_run(), rb_gzfile_set_comment(), rb_gzfile_set_mtime(), and rb_gzfile_set_orig_name().
#define GZFILE_FLAG_SYNC ZSTREAM_FLAG_UNUSED |
Definition at line 2211 of file zlib.c.
Referenced by gzfile_write(), gzfile_write_raw(), rb_gzfile_set_sync(), and rb_gzfile_sync().
#define GZFILE_IS_FINISHED | ( | gz | ) | (ZSTREAM_IS_FINISHED(&(gz)->z) && (gz)->z.buf_filled == 0) |
Definition at line 2215 of file zlib.c.
Referenced by gzfile_fill(), gzfile_getc(), gzfile_read_all(), gzfile_reader_end_run(), gzfile_reader_get_unused(), gzfile_readpartial(), gzreader_gets(), gzreader_skip_linebreaks(), and rb_gzfile_eof_p().
#define GZFILE_READ_SIZE 2048 |
Definition at line 2218 of file zlib.c.
Referenced by gzfile_read_raw_partial(), and gzfile_read_raw_rescue().
#define gzfile_reader_new | ( | gz | ) | gzfile_new((gz),&inflate_funcs,gzfile_reader_end) |
Definition at line 2283 of file zlib.c.
Referenced by rb_gzreader_s_allocate().
#define gzfile_writer_new | ( | gz | ) | gzfile_new((gz),&deflate_funcs,gzfile_writer_end) |
Definition at line 2282 of file zlib.c.
Referenced by rb_gzwriter_s_allocate().
Definition at line 55 of file zlib.c.
Referenced by zstream_expand_buffer_into(), zstream_run(), and zstream_sync().
#define OS_AMIGA 0x01 |
Definition at line 2162 of file zlib.c.
Referenced by Init_zlib().
#define OS_ATARI 0x05 |
Definition at line 2165 of file zlib.c.
Referenced by Init_zlib().
#define OS_CODE OS_UNIX |
Definition at line 2179 of file zlib.c.
Referenced by Init_zlib().
#define OS_CPM 0x09 |
Definition at line 2173 of file zlib.c.
Referenced by Init_zlib().
#define OS_MACOS 0x07 |
Definition at line 2167 of file zlib.c.
Referenced by Init_zlib().
#define OS_MSDOS 0x00 |
Definition at line 2161 of file zlib.c.
Referenced by Init_zlib().
#define OS_OS2 0x06 |
Definition at line 2166 of file zlib.c.
Referenced by Init_zlib().
#define OS_QDOS 0x0c |
Definition at line 2174 of file zlib.c.
Referenced by Init_zlib().
#define OS_RISCOS 0x0d |
Definition at line 2175 of file zlib.c.
Referenced by Init_zlib().
#define OS_TOPS20 0x0a |
Definition at line 2168 of file zlib.c.
Referenced by Init_zlib().
#define OS_UNIX 0x03 |
Definition at line 2164 of file zlib.c.
Referenced by Init_zlib().
#define OS_UNKNOWN 0xff |
Definition at line 2176 of file zlib.c.
Referenced by Init_zlib().
#define OS_VMCMS 0x04 |
Definition at line 2171 of file zlib.c.
Referenced by Init_zlib().
#define OS_VMS 0x02 |
Definition at line 2163 of file zlib.c.
Referenced by Init_zlib().
#define OS_WIN32 0x0b |
Definition at line 2169 of file zlib.c.
Referenced by Init_zlib().
#define OS_ZSYSTEM 0x08 |
Definition at line 2172 of file zlib.c.
Referenced by Init_zlib().
#define rb_gzwriter_addstr rb_io_addstr |
Definition at line 3565 of file zlib.c.
Referenced by Init_zlib().
#define rb_gzwriter_print rb_io_print |
Definition at line 3575 of file zlib.c.
Referenced by Init_zlib().
#define rb_gzwriter_printf rb_io_printf |
Definition at line 3570 of file zlib.c.
Referenced by Init_zlib().
#define rb_gzwriter_puts rb_io_puts |
Definition at line 3580 of file zlib.c.
Referenced by Init_zlib().
#define rb_zlib_adler32_combine rb_f_notimplement |
Definition at line 461 of file zlib.c.
Referenced by Init_zlib().
#define rb_zlib_crc32_combine rb_f_notimplement |
Definition at line 499 of file zlib.c.
Referenced by Init_zlib().
#define RUBY_ZLIB_VERSION "0.6.0" |
Definition at line 28 of file zlib.c.
Referenced by Init_zlib().
Definition at line 24 of file zlib.c.
Referenced by zlib_mem_alloc().
#define zstream_append_buffer2 | ( | z, | |
v | |||
) | zstream_append_buffer((z),(Bytef*)RSTRING_PTR(v),RSTRING_LEN(v)) |
Definition at line 764 of file zlib.c.
Referenced by gzfile_make_header(), rb_inflate_addstr(), rb_inflate_inflate(), and zstream_passthrough_input().
#define zstream_append_input2 | ( | z, | |
v | |||
) |
Definition at line 876 of file zlib.c.
Referenced by gzfile_read_raw_ensure(), and gzfile_read_raw_until_zero().
#define ZSTREAM_AVAIL_OUT_STEP_MAX 16384 |
Definition at line 564 of file zlib.c.
Referenced by zstream_expand_buffer(), zstream_expand_buffer_without_gvl(), and zstream_shift_buffer().
#define ZSTREAM_AVAIL_OUT_STEP_MIN 2048 |
Definition at line 565 of file zlib.c.
Referenced by zstream_expand_buffer(), and zstream_expand_buffer_without_gvl().
#define zstream_deflate_new | ( | klass | ) | zstream_new((klass), &deflate_funcs) |
Definition at line 1174 of file zlib.c.
Referenced by rb_deflate_s_allocate().
#define ZSTREAM_EXPAND_BUFFER_OK 0 |
Definition at line 558 of file zlib.c.
Referenced by zstream_expand_buffer_without_gvl().
#define ZSTREAM_FLAG_CLOSING 0x8 |
Definition at line 547 of file zlib.c.
Referenced by gzfile_reader_end(), and gzfile_writer_end().
#define ZSTREAM_FLAG_FINISHED 0x4 |
Definition at line 546 of file zlib.c.
Referenced by zstream_run_func().
#define ZSTREAM_FLAG_GZFILE |
#define ZSTREAM_FLAG_IN_STREAM 0x2 |
Definition at line 545 of file zlib.c.
Referenced by zstream_end(), zstream_run(), and zstream_run_func().
#define ZSTREAM_FLAG_READY 0x1 |
Definition at line 544 of file zlib.c.
Referenced by zstream_reset().
#define zstream_inflate_new | ( | klass | ) | zstream_new((klass), &inflate_funcs) |
Definition at line 1175 of file zlib.c.
Referenced by rb_inflate_s_allocate().
#define zstream_init_deflate | ( | z | ) | zstream_init((z), &deflate_funcs) |
Definition at line 619 of file zlib.c.
Referenced by rb_deflate_s_deflate().
#define zstream_init_inflate | ( | z | ) | zstream_init((z), &inflate_funcs) |
Definition at line 620 of file zlib.c.
Referenced by rb_inflate_s_inflate().
#define ZSTREAM_INITIAL_BUFSIZE 1024 |
Definition at line 562 of file zlib.c.
Referenced by zstream_expand_buffer().
#define ZSTREAM_IS_CLOSING | ( | z | ) | ((z)->flags & ZSTREAM_FLAG_CLOSING) |
Definition at line 555 of file zlib.c.
Referenced by gzfile_reader_end(), and gzfile_writer_end().
#define ZSTREAM_IS_FINISHED | ( | z | ) | ((z)->flags & ZSTREAM_FLAG_FINISHED) |
Definition at line 554 of file zlib.c.
Referenced by gzfile_fill(), gzfile_getc(), gzfile_read_all(), gzfile_read_more(), gzfile_readpartial(), gzreader_gets(), rb_inflate_addstr(), rb_inflate_inflate(), rb_zstream_finished_p(), and zstream_detach_buffer().
#define ZSTREAM_IS_GZFILE | ( | z | ) | ((z)->flags & ZSTREAM_FLAG_GZFILE) |
Definition at line 556 of file zlib.c.
Referenced by zstream_detach_buffer(), zstream_expand_buffer(), and zstream_run().
#define ZSTREAM_IS_READY | ( | z | ) | ((z)->flags & ZSTREAM_FLAG_READY) |
Definition at line 553 of file zlib.c.
Referenced by get_gzfile(), get_zstream(), gzfile_ensure_close(), gzfile_free(), gzfile_reader_get_unused(), rb_zstream_closed_p(), zstream_end(), and zstream_free().
#define ZSTREAM_READY | ( | z | ) | ((z)->flags |= ZSTREAM_FLAG_READY) |
Definition at line 552 of file zlib.c.
Referenced by rb_deflate_initialize(), rb_deflate_s_deflate(), rb_gzreader_initialize(), rb_gzwriter_initialize(), rb_inflate_initialize(), and rb_inflate_s_inflate().
Definition at line 1571 of file zlib.c.
References args, RSTRING_LEN, RSTRING_PTR, src, zstream_detach_buffer(), and zstream_run().
Referenced by rb_deflate_s_deflate().
Referenced by rb_inflate_add_dictionary(), rb_zlib_adler32(), and rb_zlib_crc32().
Definition at line 1630 of file zlib.c.
References NIL_P(), RSTRING_LEN, RSTRING_PTR, StringValue, and zstream_run().
Referenced by rb_deflate_addstr(), and rb_deflate_deflate().
Definition at line 1942 of file zlib.c.
References NIL_P(), RSTRING_LEN, RSTRING_PTR, zstream::stream, StringValue, and zstream_run().
Referenced by rb_inflate_addstr(), and rb_inflate_inflate().
Definition at line 354 of file zlib.c.
Referenced by gzfile_free(), and zstream_finalize().
Definition at line 2918 of file zlib.c.
References Data_Get_Struct, gz, rb_raise(), gzfile::z, and ZSTREAM_IS_READY.
Referenced by gzreader_gets(), rb_gzfile_close(), rb_gzfile_comment(), rb_gzfile_crc(), rb_gzfile_eof_p(), rb_gzfile_finish(), rb_gzfile_level(), rb_gzfile_lineno(), rb_gzfile_mtime(), rb_gzfile_orig_name(), rb_gzfile_os_code(), rb_gzfile_set_comment(), rb_gzfile_set_lineno(), rb_gzfile_set_mtime(), rb_gzfile_set_orig_name(), rb_gzfile_set_sync(), rb_gzfile_sync(), rb_gzfile_to_io(), rb_gzfile_total_in(), rb_gzfile_total_out(), rb_gzreader_getbyte(), rb_gzreader_getc(), rb_gzreader_read(), rb_gzreader_readpartial(), rb_gzreader_rewind(), rb_gzreader_ungetbyte(), rb_gzreader_ungetc(), rb_gzwriter_flush(), rb_gzwriter_putc(), and rb_gzwriter_write().
Definition at line 1178 of file zlib.c.
References Data_Get_Struct, rb_raise(), and ZSTREAM_IS_READY.
Referenced by rb_deflate_addstr(), rb_deflate_deflate(), rb_deflate_flush(), rb_deflate_init_copy(), rb_deflate_params(), rb_deflate_set_dictionary(), rb_inflate_addstr(), rb_inflate_inflate(), rb_inflate_set_dictionary(), rb_inflate_sync(), rb_inflate_sync_point_p(), rb_zstream_adler(), rb_zstream_data_type(), rb_zstream_end(), rb_zstream_finish(), rb_zstream_finished_p(), rb_zstream_reset(), rb_zstream_set_avail_out(), rb_zstream_total_in(), and rb_zstream_total_out().
Definition at line 2652 of file zlib.c.
References checksum_long, gzfile::crc, RSTRING_LEN, RSTRING_PTR, and gzfile::ungetc.
Referenced by gzfile_getc(), gzfile_read(), gzfile_read_all(), gzfile_readpartial(), gzreader_gets(), and gzreader_skip_linebreaks().
Definition at line 2590 of file zlib.c.
References gzfile::crc, crc, zstream::flags, GZFILE_FLAG_FOOTER_FINISHED, gzfile_get32(), gzfile_raise(), gzfile_read_raw_ensure(), zstream::input, length, rb_raise(), RSTRING_PTR, zstream::stream, gzfile::z, and zstream_discard_input().
Referenced by gzfile_fill(), gzfile_getc(), gzfile_read_all(), gzfile_reader_end_run(), gzfile_reader_get_unused(), and gzfile_readpartial().
Definition at line 2300 of file zlib.c.
References gzfile::comment, gzfile::end, gzfile::io, io, gzfile::orig_name, Qnil, rb_funcall(), and rb_respond_to().
Referenced by gzfile_ensure_close(), rb_gzfile_close(), and rb_gzfile_finish().
Definition at line 2984 of file zlib.c.
References Data_Get_Struct, gz, gzfile_close(), Qnil, gzfile::z, and ZSTREAM_IS_READY.
Referenced by gzfile_wrap().
Definition at line 2439 of file zlib.c.
References input, NIL_P(), rb_attr_get(), rb_call_super(), rb_str_append(), rb_str_cat2(), rb_str_inspect(), rb_str_resize(), RSTRING_LEN, and str.
Referenced by Init_zlib().
|
static |
Definition at line 2683 of file zlib.c.
References zstream::buf_filled, zstream::flags, gzfile_check_footer(), GZFILE_FLAG_FOOTER_FINISHED, GZFILE_IS_FINISHED, gzfile_read_more(), rb_eArgError, rb_raise(), gzfile::z, and ZSTREAM_IS_FINISHED.
Referenced by gzfile_read(), gzreader_charboundary(), and gzreader_gets().
Definition at line 2233 of file zlib.c.
References gzfile::cbuf, finalizer_warn(), zstream::func, xfree, gzfile::z, zstream_finalize(), and ZSTREAM_IS_READY.
|
static |
Definition at line 2404 of file zlib.c.
References n.
Referenced by gzfile_check_footer(), and gzfile_read_header().
Definition at line 2780 of file zlib.c.
References ALLOC_N, zstream::buf, buf, zstream::buf_filled, gzfile::cbuf, dp, dst, gzfile::ec, ECONV_AFTER_OUTPUT, ECONV_PARTIAL_INPUT, gzfile::enc, gzfile::enc2, zstream::flags, gzfile_calc_crc(), GZFILE_CBUF_CAPA, gzfile_check_footer(), GZFILE_FLAG_FOOTER_FINISHED, GZFILE_IS_FINISHED, gzfile_newstr(), gzfile_read(), gzfile_read_more(), len, NIL_P(), OBJ_TAINT, Qnil, rb_econv_check_error(), rb_econv_convert(), rb_enc_associate(), rb_enc_dummy_p(), rb_enc_mbclen(), rb_enc_mbmaxlen, rb_str_new(), RSTRING_END, RSTRING_PTR, void, gzfile::z, ZSTREAM_IS_FINISHED, and zstream_shift_buffer().
Referenced by rb_gzreader_getc().
Definition at line 2498 of file zlib.c.
References buf, gzfile::crc, zstream::flags, GZFILE_FLAG_FOOTER_FINISHED, gzfile_set32(), zstream::stream, gzfile::z, and zstream_append_buffer().
Referenced by gzfile_writer_end_run().
Definition at line 2454 of file zlib.c.
References buf, gzfile::comment, zstream::flags, flags, GZ_EXTRAFLAG_FAST, GZ_EXTRAFLAG_SLOW, GZ_FLAG_COMMENT, GZ_FLAG_ORIG_NAME, GZ_MAGIC1, GZ_MAGIC2, GZ_METHOD_DEFLATE, GZFILE_FLAG_HEADER_FINISHED, gzfile_set32(), gzfile::level, gzfile::mtime, NIL_P(), gzfile::orig_name, gzfile::os_code, time, gzfile::z, zstream_append_buffer(), and zstream_append_buffer2.
Referenced by gzfile_write(), and gzfile_writer_end_run().
Definition at line 2222 of file zlib.c.
References gzfile::comment, gzfile::ecopts, gzfile::io, gzfile::orig_name, gzfile::path, rb_gc_mark(), gzfile::z, and zstream_mark().
|
static |
Definition at line 2665 of file zlib.c.
References gzfile::ec, gzfile::ecflags, ECONV_PARTIAL_INPUT, gzfile::ecopts, gzfile::enc, gzfile::enc2, OBJ_TAINT, rb_econv_str_convert(), rb_enc_associate(), rb_enc_dummy_p(), rb_str_conv_enc_opts(), and str.
Referenced by gzfile_getc(), gzfile_read_all(), and gzreader_gets().
Definition at line 2424 of file zlib.c.
References exc, zstream::input, NIL_P(), rb_exc_new2(), rb_exc_raise(), rb_ivar_set(), rb_str_resurrect(), and gzfile::z.
Referenced by gzfile_check_footer(), and gzfile_read_header().
Definition at line 2702 of file zlib.c.
References dst, gzfile_calc_crc(), gzfile_fill(), NIL_P(), Qnil, rb_str_new(), gzfile::z, and zstream_shift_buffer().
Referenced by gzfile_getc(), gzreader_gets(), rb_gzreader_getbyte(), and rb_gzreader_read().
Definition at line 2758 of file zlib.c.
References dst, zstream::flags, gzfile_calc_crc(), gzfile_check_footer(), GZFILE_FLAG_FOOTER_FINISHED, GZFILE_IS_FINISHED, gzfile_newstr(), gzfile_read_more(), NIL_P(), OBJ_TAINT, rb_str_new(), gzfile::z, zstream_detach_buffer(), and ZSTREAM_IS_FINISHED.
Referenced by gzreader_gets(), and rb_gzreader_read().
Definition at line 2509 of file zlib.c.
References gzfile::comment, flags, GZ_EXTRAFLAG_FAST, GZ_EXTRAFLAG_SLOW, GZ_FLAG_COMMENT, GZ_FLAG_ENCRYPT, GZ_FLAG_EXTRA, GZ_FLAG_MULTIPART, GZ_FLAG_ORIG_NAME, GZ_FLAG_UNKNOWN_MASK, GZ_MAGIC1, GZ_MAGIC2, GZ_METHOD_DEFLATE, gzfile_get16(), gzfile_get32(), gzfile_raise(), gzfile_read_raw_ensure(), gzfile_read_raw_until_zero(), head, zstream::input, len, gzfile::level, gzfile::mtime, OBJ_TAINT, gzfile::orig_name, gzfile::os_code, p, Qnil, rb_raise(), rb_str_new(), RSTRING_LEN, RSTRING_PTR, gzfile::z, zstream_discard_input(), and zstream_run().
Referenced by rb_gzreader_initialize().
|
static |
Definition at line 2630 of file zlib.c.
References zstream::buf_filled, gzfile_read_raw(), NIL_P(), rb_raise(), RSTRING_LEN, RSTRING_PTR, str, gzfile::z, ZSTREAM_IS_FINISHED, and zstream_run().
Referenced by gzfile_fill(), gzfile_getc(), gzfile_read_all(), gzfile_readpartial(), gzreader_gets(), and gzreader_skip_linebreaks().
Definition at line 2354 of file zlib.c.
References gzfile_read_raw_partial(), gzfile_read_raw_rescue(), rb_eEOFError, rb_eNoMethodError, and rb_rescue2().
Referenced by gzfile_read_more(), gzfile_read_raw_ensure(), and gzfile_read_raw_until_zero().
Definition at line 2362 of file zlib.c.
References gzfile_read_raw(), zstream::input, NIL_P(), RSTRING_LEN, str, gzfile::z, and zstream_append_input2.
Referenced by gzfile_check_footer(), and gzfile_read_header().
Definition at line 2329 of file zlib.c.
References Check_Type, gz, GZFILE_READ_SIZE, INT2FIX, gzfile::io, rb_funcall(), str, and T_STRING.
Referenced by gzfile_read_raw().
Definition at line 2340 of file zlib.c.
References Check_Type, gz, GZFILE_READ_SIZE, INT2FIX, gzfile::io, NIL_P(), Qnil, rb_eNoMethodError, rb_errinfo, rb_funcall(), rb_obj_is_kind_of(), str, and T_STRING.
Referenced by gzfile_read_raw().
|
static |
Definition at line 2375 of file zlib.c.
References gzfile_read_raw(), zstream::input, NIL_P(), p, rb_raise(), RSTRING_LEN, RSTRING_PTR, str, gzfile::z, and zstream_append_input2.
Referenced by gzfile_read_header().
Definition at line 2878 of file zlib.c.
References zstream::flags, gzfile_reader_end_run(), rb_ensure(), gzfile::z, zstream_end(), ZSTREAM_FLAG_CLOSING, and ZSTREAM_IS_CLOSING.
Definition at line 2865 of file zlib.c.
References zstream::flags, gz, gzfile_check_footer(), GZFILE_FLAG_FOOTER_FINISHED, GZFILE_IS_FINISHED, Qnil, and gzfile::z.
Referenced by gzfile_reader_end().
Definition at line 2901 of file zlib.c.
References zstream::flags, gzfile_check_footer(), GZFILE_FLAG_FOOTER_FINISHED, GZFILE_IS_FINISHED, zstream::input, NIL_P(), OBJ_TAINT, Qnil, rb_str_resurrect(), str, gzfile::z, and ZSTREAM_IS_READY.
Referenced by rb_gzreader_unused().
Definition at line 2887 of file zlib.c.
References gzfile_reset(), zstream::input, INT2FIX, gzfile::io, n, NIL_P(), rb_funcall(), rb_int2inum(), RSTRING_LEN, zstream::stream, and gzfile::z.
Referenced by rb_gzreader_rewind().
Definition at line 2715 of file zlib.c.
References zstream::buf_filled, dst, zstream::flags, gzfile_calc_crc(), gzfile_check_footer(), GZFILE_FLAG_FOOTER_FINISHED, GZFILE_IS_FINISHED, gzfile_read_more(), memcpy(), NIL_P(), OBJ_TAINT, rb_eArgError, rb_eEOFError, rb_raise(), rb_str_new(), rb_str_resize(), RSTRING_LEN, RSTRING_PTR, gzfile::z, ZSTREAM_IS_FINISHED, and zstream_shift_buffer().
Referenced by rb_gzreader_readpartial().
Definition at line 2286 of file zlib.c.
References gzfile::crc, gzfile::ec, gzfile::ecflags, gzfile::ecopts, gzfile::enc, gzfile::enc2, gzfile::lineno, OnigEncodingTypeST::name, rb_econv_close(), rb_econv_open_opts(), gzfile::ungetc, gzfile::z, and zstream_reset().
Referenced by gzfile_reader_rewind().
Definition at line 3051 of file zlib.c.
References gzfile_wrap(), io, rb_eArgError, rb_file_open_str(), and rb_raise().
Referenced by rb_gzreader_s_open(), and rb_gzwriter_s_open().
|
static |
Definition at line 2415 of file zlib.c.
Referenced by gzfile_make_footer(), and gzfile_make_header().
Definition at line 2833 of file zlib.c.
References gzfile::ungetc, gzfile::z, and zstream_buffer_ungetbyte().
Referenced by rb_gzreader_ungetbyte().
Definition at line 2826 of file zlib.c.
References len, gzfile::ungetc, gzfile::z, and zstream_buffer_ungets().
Referenced by rb_gzreader_ungetc().
Definition at line 2996 of file zlib.c.
References arg, argc, new_wrap_arg_t::argc, argv, new_wrap_arg_t::argv, gzfile_ensure_close(), new_wrap_arg_t::klass, klass, new_wrap(), obj, rb_block_given_p(), rb_class_new_instance(), rb_ensure(), rb_io_close(), rb_jump_tag(), rb_protect(), rb_yield(), and state.
Referenced by gzfile_s_open(), and rb_gzfile_s_wrap().
Definition at line 2615 of file zlib.c.
References checksum_long, gzfile::crc, zstream::flags, GZFILE_FLAG_HEADER_FINISHED, GZFILE_FLAG_SYNC, gzfile_make_header(), gzfile_write_raw(), gzfile::z, and zstream_run().
Referenced by rb_gzwriter_putc(), and rb_gzwriter_write().
Definition at line 2314 of file zlib.c.
References zstream::buf_filled, zstream::flags, GZFILE_FLAG_SYNC, gzfile::io, OBJ_TAINT, rb_funcall(), rb_respond_to(), str, gzfile::z, and zstream_detach_buffer().
Referenced by gzfile_write(), gzfile_writer_end_run(), and rb_gzwriter_flush().
Definition at line 2856 of file zlib.c.
References zstream::flags, gzfile_writer_end_run(), rb_ensure(), gzfile::z, zstream_end(), ZSTREAM_FLAG_CLOSING, and ZSTREAM_IS_CLOSING.
Definition at line 2840 of file zlib.c.
References zstream::flags, gz, GZFILE_FLAG_HEADER_FINISHED, gzfile_make_footer(), gzfile_make_header(), gzfile_write_raw(), Qnil, gzfile::z, and zstream_run().
Referenced by gzfile_writer_end().
|
static |
Definition at line 3971 of file zlib.c.
References zstream::buf, zstream::buf_filled, e, gzfile::enc, gzfile_fill(), MBCLEN_CHARFOUND_LEN, MBCLEN_CHARFOUND_P, MBCLEN_NEEDMORE_LEN, MBCLEN_NEEDMORE_P, n, p, rb_enc_left_char_head, rb_enc_precise_mbclen(), RSTRING_PTR, s, and gzfile::z.
Referenced by gzreader_gets().
Definition at line 3992 of file zlib.c.
References zstream::buf, zstream::buf_filled, dst, gzfile::enc, enc, get_gzfile(), gz, gzfile_calc_crc(), gzfile_fill(), GZFILE_IS_FINISHED, gzfile_newstr(), gzfile_read(), gzfile_read_all(), gzfile_read_more(), gzreader_charboundary(), gzreader_skip_linebreaks(), gzfile::lineno, memcmp(), n, NIL_P(), NUM2LONG, p, Qnil, rb_check_string_type(), rb_enc_mbmaxlen, rb_rs, rb_scan_args(), rb_str_new(), res, rscheck(), RSTRING_LEN, RSTRING_PTR, StringValue, tmp, gzfile::z, ZSTREAM_IS_FINISHED, and zstream_shift_buffer().
Referenced by rb_gzreader_each(), rb_gzreader_gets(), and rb_gzreader_readlines().
Definition at line 3933 of file zlib.c.
References zstream::buf, zstream::buf_filled, gzfile_calc_crc(), GZFILE_IS_FINISHED, gzfile_read_more(), n, p, RSTRING_PTR, str, gzfile::z, zstream_detach_buffer(), and zstream_shift_buffer().
Referenced by gzreader_gets().
Definition at line 1885 of file zlib.c.
References args, RSTRING_LEN, RSTRING_PTR, src, zstream_detach_buffer(), and zstream_run().
Referenced by rb_inflate_s_inflate().
Definition at line 4199 of file zlib.c.
References DEF_MEM_LEVEL, gzfile_error_inspect(), id_dictionaries, INT2FIX, OS_AMIGA, OS_ATARI, OS_CODE, OS_CPM, OS_MACOS, OS_MSDOS, OS_OS2, OS_QDOS, OS_RISCOS, OS_TOPS20, OS_UNIX, OS_UNKNOWN, OS_VMCMS, OS_VMS, OS_WIN32, OS_ZSYSTEM, rb_cObject, rb_define_alloc_func(), rb_define_attr(), rb_define_class_under(), rb_define_const(), rb_define_method(), rb_define_module(), rb_define_module_function(), rb_define_singleton_method(), rb_deflate_addstr(), rb_deflate_deflate(), rb_deflate_flush(), rb_deflate_init_copy(), rb_deflate_initialize(), rb_deflate_params(), rb_deflate_s_allocate(), rb_deflate_s_deflate(), rb_deflate_set_dictionary(), rb_eStandardError, rb_gzfile_close(), rb_gzfile_closed_p(), rb_gzfile_comment(), rb_gzfile_crc(), rb_gzfile_eof_p(), rb_gzfile_finish(), rb_gzfile_level(), rb_gzfile_lineno(), rb_gzfile_mtime(), rb_gzfile_orig_name(), rb_gzfile_os_code(), rb_gzfile_s_wrap(), rb_gzfile_set_comment(), rb_gzfile_set_lineno(), rb_gzfile_set_mtime(), rb_gzfile_set_orig_name(), rb_gzfile_set_sync(), rb_gzfile_sync(), rb_gzfile_to_io(), rb_gzfile_total_in(), rb_gzfile_total_out(), rb_gzreader_bytes(), rb_gzreader_each(), rb_gzreader_each_byte(), rb_gzreader_each_char(), rb_gzreader_getbyte(), rb_gzreader_getc(), rb_gzreader_gets(), rb_gzreader_initialize(), rb_gzreader_lines(), rb_gzreader_read(), rb_gzreader_readbyte(), rb_gzreader_readchar(), rb_gzreader_readline(), rb_gzreader_readlines(), rb_gzreader_readpartial(), rb_gzreader_rewind(), rb_gzreader_s_allocate(), rb_gzreader_s_open(), rb_gzreader_ungetbyte(), rb_gzreader_ungetc(), rb_gzreader_unused(), rb_gzwriter_addstr, rb_gzwriter_flush(), rb_gzwriter_initialize(), rb_gzwriter_print, rb_gzwriter_printf, rb_gzwriter_putc(), rb_gzwriter_puts, rb_gzwriter_s_allocate(), rb_gzwriter_s_open(), rb_gzwriter_write(), rb_include_module(), rb_inflate_add_dictionary(), rb_inflate_addstr(), rb_inflate_inflate(), rb_inflate_initialize(), rb_inflate_s_allocate(), rb_inflate_s_inflate(), rb_inflate_set_dictionary(), rb_inflate_sync(), rb_inflate_sync_point_p(), rb_intern, rb_mEnumerable, rb_str_new2, rb_undef_alloc_func(), rb_zlib_adler32(), rb_zlib_adler32_combine, rb_zlib_crc32(), rb_zlib_crc32_combine, rb_zlib_crc_table(), rb_zlib_version(), rb_zstream_adler(), rb_zstream_avail_in(), rb_zstream_avail_out(), rb_zstream_closed_p(), rb_zstream_data_type(), rb_zstream_end(), rb_zstream_finish(), rb_zstream_finished_p(), rb_zstream_flush_next_in(), rb_zstream_flush_next_out(), rb_zstream_reset(), rb_zstream_set_avail_out(), rb_zstream_total_in(), rb_zstream_total_out(), and RUBY_ZLIB_VERSION.
Definition at line 2977 of file zlib.c.
References arg, new_wrap_arg_t::argc, new_wrap_arg_t::argv, new_wrap_arg_t::klass, and rb_class_new_instance().
Referenced by gzfile_wrap().
|
static |
NORETURN | ( | static void | gzfile_raisestruct gzfile *, VALUE, const char * | ) |
Definition at line 306 of file zlib.c.
References buf, exc, rb_exc_new2(), rb_exc_raise(), rb_sys_fail(), and snprintf.
Referenced by rb_deflate_init_copy(), rb_deflate_initialize(), rb_deflate_params(), rb_deflate_s_deflate(), rb_deflate_set_dictionary(), rb_gzreader_initialize(), rb_gzwriter_initialize(), rb_inflate_initialize(), rb_inflate_s_inflate(), rb_inflate_set_dictionary(), rb_inflate_sync_point_p(), zstream_end(), zstream_reset(), zstream_run(), and zstream_sync().
Definition at line 1691 of file zlib.c.
References do_deflate(), get_zstream(), obj, and OBJ_INFECT.
Referenced by Init_zlib().
Definition at line 1669 of file zlib.c.
References ARG_FLUSH, do_deflate(), get_zstream(), OBJ_INFECT, rb_scan_args(), src, and zstream_detach_buffer().
Referenced by Init_zlib().
Definition at line 1714 of file zlib.c.
References FIXNUMARG, get_zstream(), rb_scan_args(), zstream_detach_buffer(), and zstream_run().
Referenced by Init_zlib().
Definition at line 1550 of file zlib.c.
References zstream::buf, zstream::buf_filled, Data_Get_Struct, err, zstream::flags, get_zstream(), zstream::input, NIL_P(), Qnil, raise_zlib_error(), rb_str_dup(), and zstream::stream.
Referenced by Init_zlib().
Definition at line 1524 of file zlib.c.
References ARG_LEVEL, ARG_MEMLEVEL, ARG_STRATEGY, ARG_WBITS, Data_Get_Struct, err, level, obj, raise_zlib_error(), rb_scan_args(), zstream::stream, and ZSTREAM_READY.
Referenced by Init_zlib().
Definition at line 1742 of file zlib.c.
References ARG_LEVEL, ARG_STRATEGY, zstream::buf_filled, err, get_zstream(), level, n, Qnil, raise_zlib_error(), rb_warning(), zstream::stream, and zstream_expand_buffer().
Referenced by Init_zlib().
Definition at line 1604 of file zlib.c.
References ARG_LEVEL, args, deflate_run(), dst, err, level, OBJ_INFECT, raise_zlib_error(), rb_ensure(), rb_scan_args(), src, zstream::stream, StringValue, zstream_end(), zstream_init_deflate, and ZSTREAM_READY.
Referenced by Init_zlib().
Definition at line 1784 of file zlib.c.
References err, get_zstream(), OBJ_INFECT, raise_zlib_error(), RSTRING_LENINT, RSTRING_PTR, src, zstream::stream, and StringValue.
Referenced by Init_zlib().
Definition at line 3258 of file zlib.c.
References get_gzfile(), gz, gzfile_close(), gzfile::io, and io.
Referenced by Init_zlib().
Definition at line 3293 of file zlib.c.
References Data_Get_Struct, gz, gzfile::io, NIL_P(), Qfalse, and Qtrue.
Referenced by Init_zlib().
Definition at line 3143 of file zlib.c.
References gzfile::comment, get_gzfile(), NIL_P(), OBJ_TAINT, rb_str_dup(), and str.
Referenced by Init_zlib().
Definition at line 3081 of file zlib.c.
References crc, get_gzfile(), and rb_uint2inum().
Referenced by Init_zlib().
Definition at line 3387 of file zlib.c.
References gzfile::ec, gzfile::ecflags, gzfile::ecopts, gzfile::enc, gzfile::enc2, OnigEncodingTypeST::name, NIL_P(), NULL, opts, rb_econv_open_opts(), rb_econv_prepare_opts(), and rb_io_extract_encoding_option().
Referenced by rb_gzreader_initialize(), and rb_gzwriter_initialize().
Definition at line 3306 of file zlib.c.
References get_gzfile(), gz, GZFILE_IS_FINISHED, Qfalse, and Qtrue.
Referenced by Init_zlib().
Definition at line 3276 of file zlib.c.
References get_gzfile(), gz, gzfile_close(), gzfile::io, and io.
Referenced by Init_zlib().
Definition at line 3103 of file zlib.c.
References get_gzfile(), INT2FIX, and level.
Referenced by Init_zlib().
Definition at line 3159 of file zlib.c.
References get_gzfile(), INT2NUM, and lineno.
Referenced by Init_zlib().
Definition at line 3092 of file zlib.c.
References get_gzfile(), mtime, and rb_time_new().
Referenced by Init_zlib().
Definition at line 3126 of file zlib.c.
References get_gzfile(), NIL_P(), OBJ_TAINT, gzfile::orig_name, rb_str_dup(), and str.
Referenced by Init_zlib().
Definition at line 3114 of file zlib.c.
References get_gzfile(), INT2FIX, and os_code.
Referenced by Init_zlib().
Definition at line 3379 of file zlib.c.
References Data_Get_Struct, gz, and gzfile::path.
Referenced by rb_gzreader_initialize(), and rb_gzwriter_initialize().
Definition at line 3233 of file zlib.c.
References gzfile::comment, zstream::flags, get_gzfile(), gz, GZFILE_FLAG_HEADER_FINISHED, p, rb_raise(), rb_str_dup(), rb_str_resize(), rb_str_to_str(), RSTRING_LEN, RSTRING_PTR, s, str, and gzfile::z.
Referenced by Init_zlib().
Definition at line 3170 of file zlib.c.
References get_gzfile(), gz, gzfile::lineno, lineno, and NUM2INT.
Referenced by Init_zlib().
Definition at line 3184 of file zlib.c.
References FIX2INT, FIX2UINT, FIXNUM_P, zstream::flags, get_gzfile(), gz, GZFILE_FLAG_HEADER_FINISHED, gzfile::mtime, mtime, rb_big2ulong(), rb_Integer(), rb_raise(), val, and gzfile::z.
Referenced by Init_zlib().
Definition at line 3209 of file zlib.c.
References zstream::flags, get_gzfile(), gz, GZFILE_FLAG_HEADER_FINISHED, gzfile::orig_name, p, rb_raise(), rb_str_dup(), rb_str_resize(), rb_str_to_str(), RSTRING_LEN, RSTRING_PTR, s, str, and gzfile::z.
Referenced by Init_zlib().
Definition at line 3334 of file zlib.c.
References zstream::flags, get_gzfile(), gz, GZFILE_FLAG_SYNC, mode, RTEST, and gzfile::z.
Referenced by Init_zlib().
Definition at line 3319 of file zlib.c.
References zstream::flags, get_gzfile(), GZFILE_FLAG_SYNC, Qfalse, Qtrue, and gzfile::z.
Referenced by Init_zlib().
Definition at line 3070 of file zlib.c.
References get_gzfile(), and gzfile::io.
Referenced by Init_zlib().
Definition at line 3353 of file zlib.c.
References get_gzfile(), rb_uint2inum(), zstream::stream, and gzfile::z.
Referenced by Init_zlib().
Definition at line 3364 of file zlib.c.
References zstream::buf_filled, get_gzfile(), gz, rb_uint2inum(), zstream::stream, and gzfile::z.
Referenced by Init_zlib().
Definition at line 3890 of file zlib.c.
References ID2SYM, rb_block_given_p(), rb_enumeratorize(), rb_gzreader_each_byte(), rb_intern, and rb_warn().
Referenced by Init_zlib().
Definition at line 4154 of file zlib.c.
References gzreader_gets(), NIL_P(), obj, rb_yield(), RETURN_ENUMERATOR, and str.
Referenced by Init_zlib(), and rb_gzreader_lines().
Definition at line 3872 of file zlib.c.
References c, NIL_P(), Qnil, rb_gzreader_getbyte(), rb_yield(), and RETURN_ENUMERATOR.
Referenced by Init_zlib(), and rb_gzreader_bytes().
Definition at line 3854 of file zlib.c.
References c, NIL_P(), Qnil, rb_gzreader_getc(), rb_yield(), and RETURN_ENUMERATOR.
Referenced by Init_zlib().
Definition at line 3820 of file zlib.c.
References dst, get_gzfile(), gz, gzfile_read(), INT2FIX, NIL_P(), and RSTRING_PTR.
Referenced by Init_zlib(), rb_gzreader_each_byte(), and rb_gzreader_readbyte().
Definition at line 3791 of file zlib.c.
References get_gzfile(), gz, and gzfile_getc().
Referenced by Init_zlib(), rb_gzreader_each_char(), and rb_gzreader_readchar().
Definition at line 4122 of file zlib.c.
References dst, gzreader_gets(), NIL_P(), and rb_lastline_set().
Referenced by Init_zlib(), and rb_gzreader_readline().
Definition at line 3676 of file zlib.c.
References Data_Get_Struct, err, gz, gzfile_read_header(), gzfile::io, io, obj, gzfile::path, Qnil, raise_zlib_error(), rb_define_singleton_method(), rb_funcall(), rb_gzfile_ecopts(), rb_gzfile_path(), rb_respond_to(), rb_scan_args(), zstream::stream, gzfile::z, and ZSTREAM_READY.
Referenced by Init_zlib().
Definition at line 4172 of file zlib.c.
References ID2SYM, rb_block_given_p(), rb_enumeratorize(), rb_gzreader_each(), rb_intern, and rb_warn().
Referenced by Init_zlib().
Definition at line 3737 of file zlib.c.
References get_gzfile(), gz, gzfile_read(), gzfile_read_all(), len, NIL_P(), NUM2INT, rb_eArgError, rb_raise(), and rb_scan_args().
Referenced by Init_zlib().
Definition at line 3838 of file zlib.c.
References dst, NIL_P(), rb_eEOFError, rb_gzreader_getbyte(), and rb_raise().
Referenced by Init_zlib().
Definition at line 3804 of file zlib.c.
References dst, NIL_P(), rb_eEOFError, rb_gzreader_getc(), and rb_raise().
Referenced by Init_zlib().
Definition at line 4138 of file zlib.c.
References dst, NIL_P(), rb_eEOFError, rb_gzreader_gets(), and rb_raise().
Referenced by Init_zlib().
Definition at line 4186 of file zlib.c.
References dst, gzreader_gets(), NIL_P(), rb_ary_new(), rb_ary_push(), and str.
Referenced by Init_zlib().
Definition at line 3768 of file zlib.c.
References Check_Type, get_gzfile(), gz, gzfile_readpartial(), len, NIL_P(), NUM2INT, rb_eArgError, rb_raise(), rb_scan_args(), and T_STRING.
Referenced by Init_zlib().
Definition at line 3710 of file zlib.c.
References get_gzfile(), gz, gzfile_reader_rewind(), and INT2FIX.
Referenced by Init_zlib().
Definition at line 3925 of file zlib.c.
References get_gzfile(), gz, gzfile_ungetbyte(), NUM2CHR, and Qnil.
Referenced by Init_zlib(), and rb_gzreader_ungetc().
Definition at line 3904 of file zlib.c.
References gzfile::enc2, FIXNUM_P, get_gzfile(), gz, gzfile_ungets(), Qnil, rb_ascii8bit_encoding(), rb_enc_get(), rb_gzreader_ungetbyte(), rb_str_conv_enc(), RSTRING_LEN, RSTRING_PTR, and StringValue.
Referenced by Init_zlib().
Definition at line 3724 of file zlib.c.
References Data_Get_Struct, gz, and gzfile_reader_get_unused().
Referenced by Init_zlib().
Definition at line 3509 of file zlib.c.
References FIXNUMARG, get_gzfile(), gz, gzfile_write_raw(), gzfile::io, obj, rb_funcall(), rb_respond_to(), rb_scan_args(), gzfile::z, and zstream_run().
Referenced by Init_zlib().
Definition at line 3468 of file zlib.c.
References ARG_LEVEL, ARG_STRATEGY, Data_Get_Struct, DEF_MEM_LEVEL, err, gz, gzfile::io, io, gzfile::level, level, NIL_P(), obj, gzfile::path, Qnil, raise_zlib_error(), rb_check_convert_type(), rb_define_singleton_method(), rb_funcall(), rb_gzfile_ecopts(), rb_gzfile_path(), rb_respond_to(), rb_scan_args(), zstream::stream, T_HASH, gzfile::z, and ZSTREAM_READY.
Referenced by Init_zlib().
Definition at line 3550 of file zlib.c.
References c, get_gzfile(), gz, gzfile_write(), and NUM2CHR.
Referenced by Init_zlib().
Definition at line 3533 of file zlib.c.
References gzfile::enc2, get_gzfile(), gz, gzfile_write(), INT2FIX, rb_ascii8bit_encoding(), rb_enc_get(), rb_obj_as_string(), rb_str_conv_enc(), RB_TYPE_P, RSTRING_LEN, RSTRING_PTR, and T_STRING.
Referenced by Init_zlib().
Definition at line 1964 of file zlib.c.
References do_checksum(), id_dictionaries, obj, rb_hash_aset(), and rb_ivar_get().
Referenced by Init_zlib().
Definition at line 2048 of file zlib.c.
References do_inflate(), get_zstream(), NIL_P(), obj, OBJ_INFECT, StringValue, zstream_append_buffer2, ZSTREAM_IS_FINISHED, and zstream_passthrough_input().
Referenced by Init_zlib().
Definition at line 2011 of file zlib.c.
References do_inflate(), dst, get_zstream(), NIL_P(), OBJ_INFECT, rb_str_new(), StringValue, zstream_append_buffer2, zstream_detach_buffer(), ZSTREAM_IS_FINISHED, and zstream_passthrough_input().
Referenced by Init_zlib().
Definition at line 1866 of file zlib.c.
References ARG_WBITS, Data_Get_Struct, err, obj, raise_zlib_error(), rb_scan_args(), zstream::stream, and ZSTREAM_READY.
Referenced by Init_zlib().
Definition at line 1813 of file zlib.c.
References id_dictionaries, rb_hash_new(), rb_ivar_set(), and zstream_inflate_new.
Referenced by Init_zlib().
Definition at line 1919 of file zlib.c.
References args, dst, err, inflate_run(), OBJ_INFECT, raise_zlib_error(), rb_ensure(), src, zstream::stream, StringValue, zstream_end(), zstream_init_inflate, and ZSTREAM_READY.
Referenced by Init_zlib().
Definition at line 2119 of file zlib.c.
References err, get_zstream(), OBJ_INFECT, raise_zlib_error(), RSTRING_LENINT, RSTRING_PTR, src, zstream::stream, and StringValue.
Referenced by Init_zlib(), and zstream_run().
Definition at line 2079 of file zlib.c.
References get_zstream(), OBJ_INFECT, RSTRING_LEN, RSTRING_PTR, StringValue, and zstream_sync().
Referenced by Init_zlib().
Definition at line 2096 of file zlib.c.
References err, get_zstream(), Qfalse, Qtrue, raise_zlib_error(), and zstream::stream.
Referenced by Init_zlib().
Definition at line 508 of file zlib.c.
References dst, i, rb_ary_new2(), rb_ary_push(), and rb_uint2inum().
Referenced by Init_zlib().
Definition at line 368 of file zlib.c.
References OBJ_TAINT, rb_str_new2, and str.
Referenced by Init_zlib().
Definition at line 1400 of file zlib.c.
References get_zstream(), rb_uint2inum(), and zstream::stream.
Referenced by Init_zlib().
Definition at line 1360 of file zlib.c.
References Data_Get_Struct, zstream::input, INT2FIX, NIL_P(), and RSTRING_LEN.
Referenced by Init_zlib().
Definition at line 1333 of file zlib.c.
References Data_Get_Struct, rb_uint2inum(), and zstream::stream.
Referenced by Init_zlib().
Definition at line 1418 of file zlib.c.
References Data_Get_Struct, Qfalse, Qtrue, and ZSTREAM_IS_READY.
Referenced by Init_zlib().
Definition at line 1391 of file zlib.c.
References get_zstream(), INT2FIX, and zstream::stream.
Referenced by Init_zlib().
Definition at line 1258 of file zlib.c.
References get_zstream(), Qnil, and zstream_end().
Referenced by Init_zlib().
Definition at line 1285 of file zlib.c.
References get_zstream(), zstream_detach_buffer(), and zstream_run().
Referenced by Init_zlib().
Definition at line 1409 of file zlib.c.
References get_zstream(), Qfalse, Qtrue, and ZSTREAM_IS_FINISHED.
Referenced by Init_zlib().
Definition at line 1304 of file zlib.c.
References Data_Get_Struct, dst, OBJ_INFECT, and zstream_detach_input().
Referenced by Init_zlib().
Definition at line 1319 of file zlib.c.
References Data_Get_Struct, and zstream_detach_buffer().
Referenced by Init_zlib().
Definition at line 1269 of file zlib.c.
References get_zstream(), Qnil, and zstream_reset().
Referenced by Init_zlib().
Definition at line 1347 of file zlib.c.
References Check_Type, FIX2INT, get_zstream(), size, T_FIXNUM, and zstream_expand_buffer_into().
Referenced by Init_zlib().
Definition at line 1371 of file zlib.c.
References get_zstream(), rb_uint2inum(), and zstream::stream.
Referenced by Init_zlib().
Definition at line 1380 of file zlib.c.
References get_zstream(), rb_uint2inum(), and zstream::stream.
Referenced by Init_zlib().
Definition at line 3964 of file zlib.c.
References rb_eRuntimeError, rb_raise(), RSTRING_LEN, and RSTRING_PTR.
Referenced by gzreader_gets().
|
static |
Definition at line 584 of file zlib.c.
References p, VALGRIND_MAKE_MEM_DEFINED, void, and xmalloc.
Referenced by zstream_init().
|
static |
Definition at line 735 of file zlib.c.
References zstream::buf, zstream::buf_filled, len, memcpy(), NIL_P(), rb_str_buf_cat(), rb_str_buf_new(), rb_str_resize(), RBASIC, RSTRING_LEN, RSTRING_PTR, and zstream::stream.
Referenced by gzfile_make_footer(), and gzfile_make_header().
Definition at line 862 of file zlib.c.
References zstream::input, NIL_P(), rb_str_buf_cat(), rb_str_buf_new(), and RBASIC.
Referenced by zstream_run(), and zstream_sync().
Definition at line 846 of file zlib.c.
References zstream::buf, zstream::buf_filled, memmove(), NIL_P(), RSTRING_LEN, RSTRING_PTR, zstream::stream, and zstream_expand_buffer().
Referenced by gzfile_ungetbyte().
Definition at line 829 of file zlib.c.
References zstream::buf, zstream::buf_filled, len, memmove(), NIL_P(), RSTRING_LEN, RSTRING_PTR, zstream::stream, and zstream_expand_buffer_into().
Referenced by gzfile_ungets().
Definition at line 768 of file zlib.c.
References zstream::buf, zstream::buf_filled, dst, if(), NIL_P(), OBJ_INFECT, Qnil, rb_block_given_p(), rb_cString, rb_str_new(), rb_str_resize(), rb_yield(), RBASIC, zstream::stream, ZSTREAM_IS_FINISHED, and ZSTREAM_IS_GZFILE.
Referenced by deflate_run(), gzfile_read_all(), gzfile_write_raw(), gzreader_skip_linebreaks(), inflate_run(), rb_deflate_deflate(), rb_deflate_flush(), rb_inflate_inflate(), rb_zstream_finish(), rb_zstream_flush_next_out(), and zstream_shift_buffer().
Definition at line 909 of file zlib.c.
References dst, zstream::input, NIL_P(), Qnil, rb_cString, rb_str_new(), and RBASIC.
Referenced by rb_zstream_flush_next_in().
Definition at line 881 of file zlib.c.
References zstream::input, memmove(), NIL_P(), Qnil, rb_str_resize(), RSTRING_LEN, and RSTRING_PTR.
Referenced by gzfile_check_footer(), gzfile_read_header(), and zstream_sync().
Definition at line 943 of file zlib.c.
References zstream::zstream_funcs::end, err, zstream::flags, zstream::func, Qnil, raise_zlib_error(), rb_warning(), zstream::stream, ZSTREAM_FLAG_IN_STREAM, ZSTREAM_IS_READY, zstream_reset(), and zstream_reset_input().
Referenced by gzfile_reader_end(), gzfile_writer_end(), rb_deflate_s_deflate(), rb_inflate_s_inflate(), and rb_zstream_end().
Definition at line 623 of file zlib.c.
References zstream::buf, zstream::buf_filled, NIL_P(), OBJ_INFECT, Qnil, rb_block_given_p(), rb_cString, rb_jump_tag(), rb_protect(), rb_str_resize(), rb_yield(), RBASIC, RSTRING_LEN, RSTRING_PTR, state, zstream::stream, ZSTREAM_AVAIL_OUT_STEP_MAX, ZSTREAM_AVAIL_OUT_STEP_MIN, zstream_expand_buffer_into(), ZSTREAM_INITIAL_BUFSIZE, and ZSTREAM_IS_GZFILE.
Referenced by rb_deflate_params(), zstream_buffer_ungetbyte(), zstream_expand_buffer_protect(), and zstream_run().
Definition at line 672 of file zlib.c.
References zstream::buf, zstream::buf_filled, MAX_UINT, NIL_P(), rb_str_new(), rb_str_resize(), RBASIC, RSTRING_PTR, and zstream::stream.
Referenced by rb_zstream_set_avail_out(), zstream_buffer_ungets(), and zstream_expand_buffer().
Definition at line 691 of file zlib.c.
References rb_protect(), state, and zstream_expand_buffer().
Referenced by zstream_run_func().
Definition at line 702 of file zlib.c.
References zstream::buf, zstream::buf_filled, len, RSTRING, RSTRING_LEN, RSTRING_PTR, ruby_xrealloc(), zstream::stream, ZSTREAM_AVAIL_OUT_STEP_MAX, ZSTREAM_AVAIL_OUT_STEP_MIN, and ZSTREAM_EXPAND_BUFFER_OK.
Referenced by zstream_run_func().
Definition at line 1143 of file zlib.c.
References zstream::zstream_funcs::end, err, finalizer_warn(), zstream::func, and zstream::stream.
Referenced by gzfile_free(), and zstream_free().
Definition at line 1153 of file zlib.c.
References xfree, zstream_finalize(), and ZSTREAM_IS_READY.
Referenced by zstream_new().
Definition at line 602 of file zlib.c.
References zstream::buf, zstream::buf_filled, zstream::flags, func, zstream::func, zstream::input, Qnil, zstream::stream, zlib_mem_alloc(), and zlib_mem_free().
Referenced by zstream_new().
Definition at line 1136 of file zlib.c.
References zstream::buf, zstream::input, and rb_gc_mark().
Referenced by gzfile_mark(), and zstream_new().
Definition at line 1162 of file zlib.c.
References Data_Make_Struct, obj, zstream::stream, zstream_free(), zstream_init(), and zstream_mark().
Definition at line 900 of file zlib.c.
References zstream::input, NIL_P(), Qnil, and zstream_append_buffer2.
Referenced by rb_inflate_addstr(), and rb_inflate_inflate().
Definition at line 926 of file zlib.c.
References zstream::buf, zstream::buf_filled, err, zstream::flags, zstream::func, Qnil, raise_zlib_error(), zstream::zstream_funcs::reset, zstream::stream, ZSTREAM_FLAG_READY, and zstream_reset_input().
Referenced by gzfile_reset(), rb_zstream_reset(), and zstream_end().
Definition at line 894 of file zlib.c.
References zstream::input, and Qnil.
Referenced by zstream_end(), zstream_reset(), zstream_run(), and zstream_sync().
Definition at line 1030 of file zlib.c.
References err, zstream::flags, zstream_run_args::flush, id_dictionaries, zstream::input, int, zstream_run_args::interrupt, zstream_run_args::jump_state, MAX_UINT, NIL_P(), Qnil, raise_zlib_error(), rb_block_given_p(), RB_GC_GUARD, rb_hash_aref(), rb_inflate_set_dictionary(), rb_ivar_get(), rb_jump_tag(), rb_thread_call_without_gvl(), rb_uint2inum(), RSTRING_LEN, RSTRING_PTR, zstream::stream, zstream_run_args::stream_output, zstream_run_args::z, zstream_append_input(), zstream_expand_buffer(), ZSTREAM_FLAG_IN_STREAM, ZSTREAM_IS_GZFILE, zstream_reset_input(), zstream_run_func(), and zstream_unblock_func().
Referenced by deflate_run(), do_deflate(), do_inflate(), gzfile_read_header(), gzfile_read_more(), gzfile_write(), gzfile_writer_end_run(), inflate_run(), rb_deflate_flush(), rb_gzwriter_flush(), and rb_zstream_finish().
Definition at line 966 of file zlib.c.
References args, zstream::buf_filled, err, zstream::flags, zstream_run_args::flush, zstream::func, int, zstream_run_args::interrupt, zstream_run_args::jump_state, n, rb_thread_call_with_gvl(), zstream::zstream_funcs::run, state, zstream::stream, zstream_run_args::stream_output, zstream_run_args::z, zstream_expand_buffer_protect(), zstream_expand_buffer_without_gvl(), ZSTREAM_FLAG_FINISHED, and ZSTREAM_FLAG_IN_STREAM.
Referenced by zstream_run().
Definition at line 804 of file zlib.c.
References zstream::buf, zstream::buf_filled, dst, len, memmove(), rb_cString, rb_str_subseq(), RBASIC, RSTRING_LEN, RSTRING_PTR, zstream::stream, ZSTREAM_AVAIL_OUT_STEP_MAX, and zstream_detach_buffer().
Referenced by gzfile_getc(), gzfile_read(), gzfile_readpartial(), gzreader_gets(), and gzreader_skip_linebreaks().
Definition at line 1097 of file zlib.c.
References err, zstream::input, MAX_UINT, NIL_P(), Qfalse, Qtrue, raise_zlib_error(), RSTRING_LEN, RSTRING_PTR, src, zstream::stream, zstream_append_input(), zstream_discard_input(), and zstream_reset_input().
Referenced by rb_inflate_sync().
Definition at line 1022 of file zlib.c.
References args, and zstream_run_args::interrupt.
Referenced by zstream_run().
gz crc = crc32(0, Z_NULL, 0) |
Definition at line 2267 of file zlib.c.
Referenced by gzfile_check_footer(), and rb_gzfile_crc().
|
static |
Definition at line 2273 of file zlib.c.
Referenced by allocate_converted_string(), check_econv(), econv_init(), econv_inspect(), rb_econv_alloc(), rb_econv_init_by_convpath(), rb_econv_open(), rb_econv_open0(), rb_econv_open_by_transcoder_entries(), rb_econv_open_opts(), RUBY_ALIAS_FUNCTION(), and transcode_loop().
gz ecflags = 0 |
Definition at line 2274 of file zlib.c.
Referenced by econv_args(), econv_init(), econv_opts(), econv_s_search_convpath(), io_encoding_set(), make_readconv(), make_writeconv(), rb_econv_open0(), rb_econv_prepare_options(), and rb_io_extract_modeenc().
Definition at line 2275 of file zlib.c.
Referenced by econv_args(), econv_init(), econv_s_search_convpath(), io_encoding_set(), make_readconv(), make_writeconv(), and rb_io_extract_modeenc().
else |
gz enc = rb_default_external_encoding() |
gz enc2 = 0 |
Definition at line 2272 of file zlib.c.
Referenced by io_encoding_set(), rb_enc_compatible(), rb_io_extract_modeenc(), rb_str_split_m(), strio_ungetc(), and strio_write().
Definition at line 2270 of file zlib.c.
Referenced by block_append_gen(), bm_search(), bm_search_ic(), bm_search_notrev(), bm_search_notrev_ic(), chopped_length(), compile_string_node(), concat_opt_exact_info(), concat_opt_exact_info_str(), cont_restore_0(), convert_UTF8_to_JSON(), expand_case_fold_string(), fetch_name(), fetch_name_with_level(), fetch_token_in_cc(), fileattr_to_unixmode(), fmt_setup(), get_char_length_tree1(), get_event_id(), glob_helper(), int_dotimes(), int_downto(), int_sip_update(), int_upto(), is_pointer_to_heap(), iso2022jp_check_conv(), lex_get_str(), make_econv_exception(), match_at(), num_step(), onig_compile(), onig_region_set(), onigenc_mbn_mbc_case_fold(), ossl_ssl_read_internal(), ossl_ssl_write_internal(), pack_unpack(), parse(), parse_exp(), parser_magic_comment(), rand_range(), range_bsearch(), range_cover(), range_each(), range_include(), range_init(), range_initialize(), range_step(), range_values(), rb_ary_compact_bang(), rb_ary_fill(), rb_cstr_to_dbl(), rb_cstr_to_inum(), rb_f_sleep(), rb_file_dirname(), rb_get_values_at(), rb_iseq_compile_node(), rb_mutex_sleep(), rb_range_beg_len(), rb_reg_check_preprocess(), rb_reg_nth_match(), rb_reg_preprocess_dregexp(), rb_str_enumerate_codepoints(), rb_str_format(), rb_str_split_m(), rb_str_subpat_set(), rb_str_subpos(), rb_str_upto(), reduce_nodes_gen(), ruby_each_words(), ruby_enc_find_basename(), ruby_float_step(), ruby_float_step_size(), ruby_get_stack_grow_direction(), sip_hash24(), slow_search(), slow_search_ic(), sock_s_getservbyname(), str_end_cmp(), str_end_hash(), symbol2event_flag(), to_ascii(), update_string_node_case_fold(), vm_clear_global_method_cache(), wstati64(), yaml_check_utf8(), yaml_document_add_mapping(), yaml_document_add_sequence(), yaml_document_initialize(), yaml_document_start_event_initialize(), yaml_emitter_analyze_anchor(), yaml_emitter_analyze_scalar(), yaml_emitter_analyze_tag(), yaml_emitter_write_anchor(), yaml_emitter_write_double_quoted_scalar(), yaml_emitter_write_folded_scalar(), yaml_emitter_write_indicator(), yaml_emitter_write_literal_scalar(), yaml_emitter_write_plain_scalar(), yaml_emitter_write_single_quoted_scalar(), yaml_emitter_write_tag_content(), yaml_emitter_write_tag_handle(), yaml_parser_load_mapping(), yaml_parser_load_sequence(), yaml_parser_parse_document_start(), yaml_parser_process_directives(), and yaml_parser_scan_tag_uri().
gz z flags = ZSTREAM_FLAG_GZFILE |
zstream_init & gz |
Definition at line 2256 of file zlib.c.
Referenced by get_gzfile(), gzfile_ensure_close(), gzfile_read_raw_partial(), gzfile_read_raw_rescue(), gzfile_reader_end_run(), gzfile_writer_end_run(), gzreader_gets(), rb_gzfile_close(), rb_gzfile_closed_p(), rb_gzfile_eof_p(), rb_gzfile_finish(), rb_gzfile_path(), rb_gzfile_set_comment(), rb_gzfile_set_lineno(), rb_gzfile_set_mtime(), rb_gzfile_set_orig_name(), rb_gzfile_set_sync(), rb_gzfile_total_out(), rb_gzreader_getbyte(), rb_gzreader_getc(), rb_gzreader_initialize(), rb_gzreader_read(), rb_gzreader_readpartial(), rb_gzreader_rewind(), rb_gzreader_ungetbyte(), rb_gzreader_ungetc(), rb_gzreader_unused(), rb_gzwriter_flush(), rb_gzwriter_initialize(), rb_gzwriter_putc(), and rb_gzwriter_write().
|
static |
Definition at line 60 of file zlib.c.
Referenced by Init_zlib(), rb_inflate_add_dictionary(), rb_inflate_s_allocate(), and zstream_run().
|
static |
Definition at line 2261 of file zlib.c.
Referenced by check_exec_redirect(), console_iflush(), console_ioflush(), console_oflush(), console_set_cooked(), console_set_echo(), console_set_raw(), gzfile_close(), gzfile_s_open(), initialize(), io_alloc(), io_reader(), io_reopen(), io_wait_readable(), io_wait_writable(), ossl_ssl_close(), ossl_ssl_initialize(), ossl_ssl_setup(), prep_io(), prep_stdio(), pty_close_pty(), rb_f_open(), rb_file_initialize(), rb_file_open_generic(), rb_gzfile_close(), rb_gzfile_finish(), rb_gzreader_initialize(), rb_gzwriter_initialize(), rb_io_addstr(), rb_io_ascii8bit_binmode(), rb_io_binmode(), rb_io_binmode_m(), rb_io_each_byte(), rb_io_each_char(), rb_io_each_codepoint(), rb_io_each_line(), rb_io_flush(), rb_io_get_write_io(), rb_io_initialize(), rb_io_open_with_args(), rb_io_s_for_fd(), rb_io_s_open(), rb_io_set_autoclose(), rb_io_set_encoding(), rb_io_taint_check(), rb_io_to_io(), rb_open_file(), and writer().
gz level = 0 |
Definition at line 2262 of file zlib.c.
Referenced by backref_match_at_nested_level(), bsock_getsockopt(), bsock_setsockopt(), fetch_name_with_level(), get_char_length_tree1(), insn_operand_intern(), iseq_compile_each(), make_name_for_block(), match_at(), rb_ary_flatten(), rb_ary_flatten_bang(), rb_construct_expanded_load_path(), rb_deflate_initialize(), rb_deflate_params(), rb_deflate_s_deflate(), rb_gzfile_level(), rb_gzwriter_initialize(), rb_set_safe_level(), safe_setter(), set_indentation(), sockopt_initialize(), sockopt_linger(), sockopt_s_bool(), sockopt_s_int(), vm_backtrace_to_ary(), vm_throw(), and yaml_emitter_need_more_events().
gz lineno = 0 |
Definition at line 2268 of file zlib.c.
Referenced by argf_getline(), argf_readlines(), location_to_str(), oldbt_iter_cfunc(), oldbt_iter_iseq(), rb_gzfile_lineno(), rb_gzfile_set_lineno(), rb_io_set_lineno(), rb_vm_get_sourceline(), strio_get_lineno(), and strio_set_lineno().
gz mtime = 0 |
Definition at line 2263 of file zlib.c.
Referenced by rb_gzfile_mtime(), rb_gzfile_set_mtime(), and wutime().
return obj = Data_Make_Struct(klass, struct gzfile, gzfile_mark, gzfile_free, gz) |
Definition at line 2264 of file zlib.c.
Referenced by rb_gzfile_os_code().
Definition at line 2277 of file zlib.c.
Referenced by apply2files(), check_dirname(), check_exec_redirect(), chompdirsep(), class2path(), classname(), copy_path_class(), coverage_result_i(), dir_s_chdir(), dir_s_mkdir(), etc_systmpdir(), expand_include_path(), fc_path(), file_s_fnmatch(), foletypelib_path(), get_system_directory(), identical_path(), iseq_load(), iseq_location_setup(), iseq_s_compile(), load_file_internal(), load_ok_internal(), load_transcoder_entry(), locale_path(), oletypelib_from_guid(), oletypelib_path(), open_key_args(), ossl_x509store_add_file(), ossl_x509store_add_path(), parse(), pruby_eval(), push_include(), rb_class_path(), rb_class_path_no_cache(), rb_construct_expanded_load_path(), rb_dir_getwd(), rb_enc_path_skip_prefix(), rb_f_load(), rb_file_chmod(), rb_file_chown(), rb_file_expand_path_internal(), rb_file_lstat(), rb_file_s_realdirpath(), rb_file_s_realpath(), rb_find_file_safe(), rb_glob_caller(), rb_mod_const_get(), rb_mod_name(), rb_obj_respond_to(), rb_path_check(), rb_path_to_class(), rb_require_safe(), rb_str_encode_ospath(), rb_tmp_class_path(), rb_w32_special_folder(), reg_get_typelib_file_path(), ruby_glob0(), run_exec_open(), skiproot(), typelib_file_from_clsid(), w_class(), w_extended(), w_object(), and winnt_stat().
sum |