module IO::Stream::Readable
def readpartial(size = nil, buffer = nil)
@parameter buffer [String | Nil] An optional buffer to fill with data instead of allocating a new string.
@parameter size [Integer | Nil] The number of bytes to read.
This is a compatibility shim for existing code that uses `readpartial`.
def readpartial(size = nil, buffer = nil) read_partial(size, buffer) or raise EOFError, "Stream finished before reading enough data!" end