MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / CStreamData

Method CStreamData

src/DragDropSupport.cpp:474–487  ·  view source on GitHub ↗

----------------------------------------Stream-------------------------------------------------

Source from the content-addressed store, hash-verified

472}
473//----------------------------------------Stream-------------------------------------------------
474CStreamData::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
489CStreamData::~CStreamData() {
490 if (!m_closedStream) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected