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

Method Read

src/FTPClientWrapperSSL.cpp:698–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696}
697
698int MemoryDataSource::Read(LPSTR buffer, size_t count) {
699 size_t size = (std::min)(m_length-m_pointer, count);
700 if (size == 0)
701 return 0;
702
703 memcpy(buffer+m_pointer, m_data, size);
704 m_pointer += size;
705
706 return size;
707}
708
709int MemoryDataSource::Write(LPCSTR /*buffer*/, size_t /*count*/) {
710 return UTE_ERROR;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected