public static MutableString /*!*/ ReadNoBlock(RubyIO /*!*/ self, [DefaultProtocol] int bytes, [DefaultProtocol, Optional] MutableString buffer)
{
var stream = self.GetReadableStream();
try {
stream.ReadTimeout = 0;
} catch (InvalidOperationException) {
throw RubyExceptions.CreateEBADF();
}
return(Read(self, bytes, buffer));
}