Method: Zlib::ZStream#flush_next_out
- Defined in:
- zlib.c
#flush_next_out ⇒ String #flush_next_out {|chunk| ... } ⇒ nil
Flushes output buffer and returns all data in that buffer. If a block is given each chunk is yielded to the block until the current output buffer has been flushed.
1335 1336 1337 1338 1339 1340 1341 1342 1343 |
# File 'zlib.c', line 1335
static VALUE
rb_zstream_flush_next_out(VALUE obj)
{
struct zstream *z;
TypedData_Get_Struct(obj, struct zstream, &zstream_data_type, z);
return zstream_detach_buffer(z);
}
|