MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / Read

Method Read

SampleFramework12/v1.00/FileIO.cpp:200–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void File::Read(uint64 size, void* data) const
201{
202 Assert_(fileHandle != INVALID_HANDLE_VALUE);
203 Assert_(openMode == FileOpenMode::Read);
204
205 DWORD bytesRead = 0;
206 Win32Call(ReadFile(fileHandle, data, static_cast<DWORD>(size), &bytesRead, NULL));
207}
208
209void File::Write(uint64 size, const void* data) const
210{

Callers 1

ReadFileAsStringFunction · 0.45

Calls 1

Win32CallFunction · 0.85

Tested by

no test coverage detected