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

Method Write

SampleFramework12/v1.00/FileIO.cpp:209–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209void File::Write(uint64 size, const void* data) const
210{
211 Assert_(fileHandle != INVALID_HANDLE_VALUE);
212 Assert_(openMode == FileOpenMode::Write);
213
214 DWORD bytesWritten = 0;
215 Win32Call(WriteFile(fileHandle, data, static_cast<DWORD>(size), &bytesWritten, NULL));
216}
217
218uint64 File::Size() const
219{

Callers 1

WriteStringAsFileFunction · 0.45

Calls 1

Win32CallFunction · 0.85

Tested by

no test coverage detected