diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-09-19 18:42:32 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-09-19 18:42:32 +0000 |
commit | 44abd808658570a65df2adca678c746aa0356960 (patch) | |
tree | ad060314a7414b7b0de5864626e40e50db79b35d /io.c | |
parent | 0a4e53a5c5e6ab3093397826cb4ccc2f1ef1a9aa (diff) | |
download | ruby-44abd808658570a65df2adca678c746aa0356960.tar.gz |
* ext/zlib/zlib.c (gzfile_read_raw): call readpartial at first.
(Zlib::GzipReader#readpartial): new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1044,15 +1044,15 @@ read_all(fptr, siz, str) /* * call-seq: - * ios.readpartial(integer[, outbuf]) => string, outbuf + * ios.readpartial(maxlen[, outbuf]) => string, outbuf * - * Reads at most <i>integer</i> bytes from the I/O stream but + * Reads at most <i>maxlen</i> bytes from the I/O stream but * it blocks only if <em>ios</em> has no data immediately available. * If the optional <i>outbuf</i> argument is present, * it must reference a String, which will receive the data. * It raises <code>EOFError</code> on end of file. * - * readpartial is designed for streams such as pipe, socket, etc. + * readpartial is designed for streams such as pipe, socket, tty, etc. * It blocks only when no data immediately available. * This means that it blocks only when following all conditions hold. * * the stdio buffer in the IO object is empty. |