#include <CFileMap.h>
Inheritance diagram for AxPipe::CSourceMemFile:


Public Member Functions | |
| CSourceMemFile * | Init (const _TCHAR *szFileName, size_t cbChunk=64 *1024) |
| Set file and chunk size. | |
| CSourceMemFile () | |
| Just initialize member variables. | |
Protected Member Functions | |
| HANDLE | GetHandle () |
| Get the handle to the opened file. | |
| bool | OutOpen () |
| Open the file and create a mapping. | |
| bool | OutClose (void) |
| Close the file and the mapping. | |
| CSeg * | In () |
| Get the next chunk from the input file. | |
Private Attributes | |
| HANDLE | m_hFile |
| The opened file. | |
| HANDLE | m_hMapping |
| The mapping of the file. | |
| size_t | m_cbChunk |
| The chunk size we send down stream. | |
| longlong | m_cbFileSize |
| The length of the file in bytes. | |
| longlong | m_cbStreamPos |
| The next file position to read a chunk from. | |
| _TCHAR * | m_szFileName |
| The provided file name, new[]'d and delete[]'d here. | |
Definition at line 75 of file CFileMap.h.
|
|
Get the handle to the opened file.
Definition at line 132 of file CFileMap.cpp. References m_hFile. |
|
|
Get the next chunk from the input file. The segment returned is actually a CSegMem, i.e. a mapping to the actual file - we do not copy to a memory buffer. Multiple calls on EOF conditions are allowed.
Implements AxPipe::CSource. Definition at line 198 of file CFileMap.cpp. |
|
||||||||||||
|
Set file and chunk size.
Definition at line 140 of file CFileMap.cpp. |
|
|
Close the file and the mapping. Check for error with GetErrorCode().
Reimplemented from AxPipe::CPipe. Definition at line 173 of file CFileMap.cpp. |
|
|
Open the file and create a mapping. The filename is provided in the Init() call. Check for error with GetErrorCode().
Reimplemented from AxPipe::CPipe. Definition at line 152 of file CFileMap.cpp. |
1.3.5