Method: Zlib::ZStream#avail_in
- Defined in:
- zlib.c
#avail_in ⇒ Object
Returns bytes of data in the input buffer. Normally, returns 0.
1520 1521 1522 1523 1524 1525 1526 |
# File 'zlib.c', line 1520
static VALUE
rb_zstream_avail_in(VALUE obj)
{
struct zstream *z;
TypedData_Get_Struct(obj, struct zstream, &zstream_data_type, z);
return INT2FIX(NIL_P(z->input) ? 0 : (int)(RSTRING_LEN(z->input)));
}
|