MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Read

Method Read

Source/Engine/Platform/Win32/Win32File.cpp:37–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37bool Win32File::Read(void* buffer, uint32 bytesToRead, uint32* bytesRead)
38{
39 // Try to read data
40 DWORD tmp;
41 if (ReadFile(_handle, buffer, bytesToRead, &tmp, nullptr))
42 {
43 if (bytesRead)
44 *bytesRead = tmp;
45 return false;
46 }
47
48 if (bytesRead)
49 *bytesRead = 0;
50 return true;
51}
52
53bool Win32File::Write(const void* buffer, uint32 bytesToWrite, uint32* bytesWritten)
54{

Callers

nothing calls this directly

Calls 1

ReadFileFunction · 0.85

Tested by

no test coverage detected