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

Method StreamData

src/Windows/FTPWindow.cpp:1118–1130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1116}
1117
1118int FTPWindow::StreamData(CStreamData * stream, int index) {
1119 if (!m_currentDropObject)
1120 return -1;
1121 if (index != 0)
1122 return -1;
1123
1124 HANDLE hWriteHandle = stream->GetWriteHandle();
1125 int dldRes = m_ftpSession->DownloadFileHandle(m_currentDropObject->GetPath(), hWriteHandle);
1126 if (dldRes == -1)
1127 return -1;
1128
1129 return 0;
1130}
1131
1132int FTPWindow::OnEndDnD() {
1133 if (!m_currentDropObject)

Callers

nothing calls this directly

Calls 3

GetWriteHandleMethod · 0.80
DownloadFileHandleMethod · 0.80
GetPathMethod · 0.45

Tested by

no test coverage detected