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

Method CUT_FileDataSource

UTCP/src/UTDataSource.cpp:140–151  ·  view source on GitHub ↗

CUT_FileDataSource Constructor PARAM: filename - file name [nBufferSize] - buffer size for reading (def = 4096) RETURN: none ************************************************/

Source from the content-addressed store, hash-verified

138 none
139************************************************/
140CUT_FileDataSource::CUT_FileDataSource(LPCTSTR filename, int nBufferSize) :
141 m_nBufferSize(nBufferSize),
142 m_nLoadedDataSize(0)
143{
144 // Allocate reading buffer
145 m_lpszBuffer = new char [nBufferSize];
146
147 // Remember the file name
148 m_szFileName[0] = _T('\0');
149 if(filename)
150 _tcsncpy(m_szFileName, filename, MAX_PATH);
151}
152
153
154/***********************************************

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected