MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / read

Method read

Engine/source/platformWin32/winVolume.cpp:495–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493}
494
495U32 Win32File::read(void* dst, U32 size)
496{
497 if (mStatus != Open && mStatus != EndOfFile)
498 return 0;
499
500 DWORD bytesRead;
501 if (!::ReadFile((HANDLE)mHandle,dst,size,&bytesRead,0))
502 _updateStatus();
503 else if (bytesRead != size)
504 mStatus = EndOfFile;
505
506 return bytesRead;
507}
508
509U32 Win32File::write(const void* src, U32 size)
510{

Callers

nothing calls this directly

Calls 5

ReadFileFunction · 0.85
PathToOSFunction · 0.85
_CopyStatAttributesFunction · 0.85
readFunction · 0.50
utf16Method · 0.45

Tested by

no test coverage detected