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

Method read

Engine/source/platformWin32/winVolume.cpp:504–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502}
503
504U32 Win32File::read(void* dst, U32 size)
505{
506 if (mStatus != Open && mStatus != EndOfFile)
507 return 0;
508
509 DWORD bytesRead;
510 if (!::ReadFile((HANDLE)mHandle,dst,size,&bytesRead,0))
511 _updateStatus();
512 else if (bytesRead != size)
513 mStatus = EndOfFile;
514
515 return bytesRead;
516}
517
518U32 Win32File::write(const void* src, U32 size)
519{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected