3 #ifndef __STREAMBINDER_H
\r
4 #define __STREAMBINDER_H
\r
6 #include "../IStream.h"
\r
7 #include "../../Windows/Synchronization.h"
\r
11 NWindows::NSynchronization::CManualResetEvent _allBytesAreWritenEvent;
\r
12 NWindows::NSynchronization::CManualResetEvent _thereAreBytesToReadEvent;
\r
13 NWindows::NSynchronization::CManualResetEvent _readStreamIsClosedEvent;
\r
15 const void *_buffer;
\r
17 // bool ReadingWasClosed;
\r
18 UInt64 ProcessedSize;
\r
20 HRes CreateEvents();
\r
22 void CreateStreams(ISequentialInStream **inStream,
\r
23 ISequentialOutStream **outStream);
\r
24 HRESULT Read(void *data, UInt32 size, UInt32 *processedSize);
\r
27 HRESULT Write(const void *data, UInt32 size, UInt32 *processedSize);
\r