----------------------------------------Stream-------------------------------------------------
| 472 | } |
| 473 | //----------------------------------------Stream------------------------------------------------- |
| 474 | CStreamData::CStreamData(FILEDESCRIPTOR * fd) { |
| 475 | m_refs = 1; |
| 476 | m_currentPointer.QuadPart = 0; |
| 477 | m_closedStream = false; |
| 478 | m_readHandle = NULL; |
| 479 | m_writeHandle = NULL; |
| 480 | |
| 481 | m_filedesc = *fd; |
| 482 | |
| 483 | if (!CreatePipe(&m_readHandle, &m_writeHandle, NULL, 2048)) { |
| 484 | OutErr("[DnD] Unable to create pipe for stream\n"); |
| 485 | m_closedStream = true; |
| 486 | } |
| 487 | } |
| 488 | |
| 489 | CStreamData::~CStreamData() { |
| 490 | if (!m_closedStream) { |
nothing calls this directly
no outgoing calls
no test coverage detected