зеркало из https://github.com/github/ruby.git
f087f2c74c
(https://github.com/ruby/stringio/pull/67) Fix: https://github.com/ruby/stringio/issues/66 If length is 0, IO#pread don't even try to read the IO, it simply return the buffer untouched if there is one or a new empty buffer otherwise. It also doesn't validate the offset when length is 0. cc @jdelStrother @kou https://github.com/ruby/stringio/commit/37e9279337 Co-authored-by: Jean Boussier <jean.boussier@gmail.com> |
||
---|---|---|
.. | ||
README.md | ||
depend | ||
extconf.rb | ||
stringio.c | ||
stringio.gemspec |
README.md
StringIO
Pseudo IO
class from/to String
.
This library is based on MoonWolf version written in Ruby. Thanks a lot.
Differences to IO
fileno
raisesNotImplementedError
.- encoding conversion is not implemented, and ignored silently.