3 #ifndef __STREAMBINDER_H
4 #define __STREAMBINDER_H
6 #include "../IStream.h"
7 #include "../../Windows/Synchronization.h"
11 NWindows::NSynchronization::CManualResetEvent
*_allBytesAreWritenEvent
;
12 NWindows::NSynchronization::CManualResetEvent
*_thereAreBytesToReadEvent
;
13 NWindows::NSynchronization::CManualResetEvent
*_readStreamIsClosedEvent
;
17 // bool ReadingWasClosed;
20 _allBytesAreWritenEvent(NULL
),
21 _thereAreBytesToReadEvent(NULL
),
22 _readStreamIsClosedEvent(NULL
)
27 void CreateStreams(ISequentialInStream
**inStream
,
28 ISequentialOutStream
**outStream
);
29 HRESULT
Read(void *data
, UInt32 size
, UInt32
*processedSize
);
32 HRESULT
Write(const void *data
, UInt32 size
, UInt32
*processedSize
);