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

Method read

Engine/source/platformPOSIX/posixVolume.cpp:413–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411}
412
413U32 PosixFile::read(void* dst, U32 size)
414{
415 if (_status != Open && _status != EndOfFile)
416 return 0;
417
418 U32 bytesRead = fread(dst, 1, size, _handle);
419
420 if (bytesRead != size)
421 {
422 if (feof(_handle))
423 _status = EndOfFile;
424 else
425 _updateStatus();
426 }
427
428 return bytesRead;
429}
430
431U32 PosixFile::write(const void* src, U32 size)
432{

Callers

nothing calls this directly

Calls 4

copyStatAttributesFunction · 0.85
statClass · 0.70
readFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected