IronRuby.Runtime.IOWrapper.IOWrapper C# (CSharp) Method

IOWrapper() public method

public IOWrapper ( RubyContext context, object io, bool canRead, bool canWrite, bool canSeek, bool canFlush, bool canClose, int bufferSize ) : System
context RubyContext
io object
canRead bool
canWrite bool
canSeek bool
canFlush bool
canClose bool
bufferSize int
return System
        public IOWrapper(RubyContext/*!*/ context, object io, bool canRead, bool canWrite, bool canSeek, bool canFlush, bool canClose, int bufferSize) {
            Assert.NotNull(context);

            _context = context;
            _respondToStorage = new RespondToStorage(_context);

            _io = io;
            _canRead = canRead;
            _canWrite = canWrite;
            _canSeek = canSeek;
            _canFlush = canFlush;
            _canClose = canClose;
            _buffer = new byte[bufferSize];
            _writePos = 0;
            _readPos = 0;
            _readLen = 0;
        }