コード例 #1
0
ファイル: OutputStream.cs プロジェクト: RSchwoerer/Terminals
		private OutputStream( nsIOutputStream outputStream )
		{
			_outputStream = outputStream;
			_seekableStream = Xpcom.QueryInterface<nsISeekableStream>( outputStream );
			_seekable = _seekableStream != null;

		}
コード例 #2
0
 private OutputStream(nsIOutputStream outputStream, nsISeekableStream seekableStream)
 {
     _outputStream = outputStream;
     _seekableStream = seekableStream;
     _seekable = _seekableStream != null;
     var binaryOutputStream = Xpcom.CreateInstance<nsIBinaryOutputStream>( "@mozilla.org/binaryoutputstream;1" );
     _binaryOutputStream = Xpcom.QueryInterface<nsIBinaryOutputStream>( binaryOutputStream );
     _binaryOutputStream.SetOutputStream(_outputStream  );
 }
コード例 #3
0
ファイル: OutputStream.cs プロジェクト: 15831944/Avtoritet
        private OutputStream(nsIOutputStream outputStream, nsISeekableStream seekableStream)
        {
            _outputStream   = outputStream;
            _seekableStream = seekableStream;
            _seekable       = _seekableStream != null;
            var binaryOutputStream = Xpcom.CreateInstance <nsIBinaryOutputStream>("@mozilla.org/binaryoutputstream;1");

            _binaryOutputStream = Xpcom.QueryInterface <nsIBinaryOutputStream>(binaryOutputStream);
            _binaryOutputStream.SetOutputStream(_outputStream);
        }
コード例 #4
0
		internal OutputStream(nsIOutputStream outputStream)
		{
			_outputStream = new ComPtr<nsIOutputStream>( outputStream );
			var seekableStream = Xpcom.QueryInterface<nsISeekableStream>( outputStream );
			if ( _seekable = (seekableStream != null) )
			{
				_seekableStream = new ComPtr<nsISeekableStream>( seekableStream );
			}
			_binaryOutputStream = Xpcom.CreateInstance2<nsIBinaryOutputStream>(Contracts.BinaryOutputStream);
			_binaryOutputStream.Instance.SetOutputStream( _outputStream.Instance );
		}
コード例 #5
0
ファイル: nsIOutputStream.cs プロジェクト: pmq20/mono_forked
        public static nsIOutputStream GetProxy(Mono.WebBrowser.IWebBrowser control, nsIOutputStream obj)
        {
            object o = Base.GetProxyForObject(control, typeof(nsIOutputStream).GUID, obj);

            return(o as nsIOutputStream);
        }
コード例 #6
0
 private OutputStream(nsIOutputStream outputStream)
 {
     _outputStream   = outputStream;
     _seekableStream = Xpcom.QueryInterface <nsISeekableStream>(outputStream);
     _seekable       = _seekableStream != null;
 }
コード例 #7
0
 public static OutputStream Create(nsIOutputStream stream)
 {
     return(new OutputStream(stream));
 }
コード例 #8
0
ファイル: OutputStream.cs プロジェクト: 15831944/Avtoritet
        public static OutputStream Create(nsIOutputStream stream)
        {
            var seekable = Xpcom.QueryInterface <nsISeekableStream>(stream);

            return(new OutputStream(stream, seekable));
        }
コード例 #9
0
ファイル: OutputStream.cs プロジェクト: RSchwoerer/Terminals
		public static OutputStream Create( nsIOutputStream stream )
		{
			return new OutputStream( stream );
		}
コード例 #10
0
ファイル: nsIOutputStream.cs プロジェクト: nlhepler/mono
		public static nsIOutputStream GetProxy (Mono.WebBrowser.IWebBrowser control, nsIOutputStream obj)
		{
			object o = Base.GetProxyForObject (control, typeof(nsIOutputStream).GUID, obj);
			return o as nsIOutputStream;
		}
コード例 #11
0
 public static OutputStream Create(nsIOutputStream stream)
 {
     var seekable=Xpcom.QueryInterface<nsISeekableStream>( stream );
     return new OutputStream( stream, seekable );
 }