Example #1
0
        public RubyIO(RubyContext/*!*/ context) {
            _context = context;
            _fileDescriptor = context.AddDescriptor(this);
            _disposed = false;
            _closed = false;
            _peekAhead = -1;
            _stream = Stream.Null;

            // TODO: enable setting
            _externalEncoding = BinaryEncoding.Instance;
            _internalEncoding = null;
        }
Example #2
0
 public RubyIO(RubyContext /*!*/ context)
     : this()
 {
     ContractUtils.RequiresNotNull(context, "context");
     _fileDescriptor = context.AddDescriptor(this);
 }
Example #3
0
 public RubyIO(RubyContext/*!*/ context) 
     : this() {
     ContractUtils.RequiresNotNull(context, "context");
     _fileDescriptor = context.AddDescriptor(this);
 }