Ruby Zlib::ZStream Functions
EditRocket provides the following information on Zlib::ZStream functions in the Ruby source code builder.
adler() - Returns the adler-32 checksum.
avail_in() - Returns bytes of data in the input buffer. Normally, returns 0.
avail_out=(p1) - Allocates size bytes of free space in the output buffer. If there are more than size bytes already in the buffer, the buffer is truncated. Because free space is allocated automatically, you usually don't need to use this method.
avail_out() - Returns number of bytes of free spaces in output buffer. Because the free space is allocated automatically, this method returns 0 normally.
close() - Closes the stream. All operations on the closed stream will raise an exception.
closed?() - Returns true if the stream is closed.
data_type() - Guesses the type of the data which have been inputed into the stream. The returned value is either Zlib::BINARY, Zlib::ASCII, or Zlib::UNKNOWN.
end() - Closes the stream. All operations on the closed stream will raise an exception.
ended?() - Returns true if the stream is closed.
finish() - Finishes the stream and flushes output buffer. See Zlib::Deflate#finish and Zlib::Inflate#finish for details of this behavior.
finished?() - Returns true if the stream is finished.
flush_next_in() - Flushes input buffer and returns all data in that buffer.
flush_next_out() - Flushes output buffer and returns all data in that buffer.
reset() - Resets and initializes the stream. All data in both input and output buffer are discarded.
stream_end?() - Returns true if the stream is finished.
total_in() - Returns the total bytes of the input data to the stream. FIXME
total_out() - Returns the total bytes of the output data from the stream. FIXME