Platform_Win32_FileSystem_File.cpp File Reference
Go to the source code of this file.
Defines | |
| #define | WIN32_LEAN_AND_MEAN |
| #define | VC_EXTRALEAN |
| #define | WRITEMACRO() |
| #define | READMACRO() |
Define Documentation
| #define WIN32_LEAN_AND_MEAN |
Definition at line 5 of file Platform_Win32_FileSystem_File.cpp.
| #define VC_EXTRALEAN |
Definition at line 6 of file Platform_Win32_FileSystem_File.cpp.
| #define WRITEMACRO | ( | ) |
Value:
if (fileHandle_==INVALID_HANDLE_VALUE) \ { \ Platform::GetPlatform_OS()->OutputDebugText("Tried to write to file that is not open for writing\n"); \ return 0; \ } \ \ unsigned long numberOfBytesWritten=0; /* Stores the number of bytes read */ \ /* Writes the data to the file */ \ BOOL result=WriteFile(fileHandle_,value,sizeof(*value)*count,&numberOfBytesWritten,0); \ if (!result) \ { \ Platform::GetPlatform_OS()->OutputDebugText("Write operation failed\n"); \ return 0; \ } \ \ /* Return number of elements written, rather than the number of bytes */ \ return numberOfBytesWritten/sizeof(*value); \
Definition at line 190 of file Platform_Win32_FileSystem_File.cpp.
| #define READMACRO | ( | ) |
Value:
if (fileHandle_==INVALID_HANDLE_VALUE) \ { \ Platform::GetPlatform_OS()->OutputDebugText("Tried to read from file that is not open for reading\n"); \ return 0; \ } \ \ unsigned long numberOfBytesRead=0; /* Stores the number of bytes read */ \ /* Reads the data from the file */ \ BOOL result=ReadFile(fileHandle_,value,sizeof(*value)*count,&numberOfBytesRead,0); \ if (!result) \ { \ Platform::GetPlatform_OS()->OutputDebugText("Read operation failed\n"); \ return 0; \ } \ \ /* Return number of elements read, rather than the number of bytes */ \ return numberOfBytesRead/sizeof(*value); \
Definition at line 277 of file Platform_Win32_FileSystem_File.cpp.
Reproduction/republishing of any material on this site without permission is strictly prohibited.
