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); }