private OutputStream( nsIOutputStream outputStream ) { _outputStream = outputStream; _seekableStream = Xpcom.QueryInterface<nsISeekableStream>( outputStream ); _seekable = _seekableStream != null; }
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 ); }
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); }
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 ); }
public static nsIOutputStream GetProxy(Mono.WebBrowser.IWebBrowser control, nsIOutputStream obj) { object o = Base.GetProxyForObject(control, typeof(nsIOutputStream).GUID, obj); return(o as nsIOutputStream); }
private OutputStream(nsIOutputStream outputStream) { _outputStream = outputStream; _seekableStream = Xpcom.QueryInterface <nsISeekableStream>(outputStream); _seekable = _seekableStream != null; }
public static OutputStream Create(nsIOutputStream stream) { return(new OutputStream(stream)); }
public static OutputStream Create(nsIOutputStream stream) { var seekable = Xpcom.QueryInterface <nsISeekableStream>(stream); return(new OutputStream(stream, seekable)); }
public static OutputStream Create( nsIOutputStream stream ) { return new OutputStream( stream ); }
public static nsIOutputStream GetProxy (Mono.WebBrowser.IWebBrowser control, nsIOutputStream obj) { object o = Base.GetProxyForObject (control, typeof(nsIOutputStream).GUID, obj); return o as nsIOutputStream; }
public static OutputStream Create(nsIOutputStream stream) { var seekable=Xpcom.QueryInterface<nsISeekableStream>( stream ); return new OutputStream( stream, seekable ); }