uLib
User mode C/C++ extended API library for Win32 programmers.
|
Convenience functions for HMAPFILE...
These are not quite necessary, since you can just memcpy from the file's PBYTE,
but sometimes it makes life easier to wrap your noggin around the age-old paradigm
of reading a file and having the RTL remember the file's current position.
FWIW, these have SEH (if the compiler supports it).
Functions | |
size_t | PeekMappedFile (HMAPFILE hMapFile, PVOID Buffer, size_t cbRead) |
size_t | ReadMappedFile (HMAPFILE hMapFile, PVOID Buffer, size_t cbRead) |
size_t | WriteMappedFile (HMAPFILE hMapFile, PVOID Buffer, size_t cbWrite) |
PBYTE | GetMappedFilePtr (HMAPFILE hMapFile) |
PBYTE | SetMappedFilePtr (HMAPFILE hMapFile, INT64 Offset, UINT How) |
UINT64 | GetMappedFilePos (HMAPFILE hMapFile) |
UINT64 | SetMappedFilePos (HMAPFILE hMapFile, INT64 Offset, UINT How) |
size_t PeekMappedFile | ( | HMAPFILE | hMapFile, |
PVOID | Buffer, | ||
size_t | cbRead | ||
) |
Definition at line 1270 of file IoUtil.cpp.
size_t ReadMappedFile | ( | HMAPFILE | hMapFile, |
PVOID | Buffer, | ||
size_t | cbRead | ||
) |
Definition at line 1294 of file IoUtil.cpp.
size_t WriteMappedFile | ( | HMAPFILE | hMapFile, |
PVOID | Buffer, | ||
size_t | cbWrite | ||
) |
Definition at line 1301 of file IoUtil.cpp.
Definition at line 1330 of file IoUtil.cpp.
Definition at line 1338 of file IoUtil.cpp.
Definition at line 1369 of file IoUtil.cpp.
Definition at line 1375 of file IoUtil.cpp.