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

Method getSize

Engine/source/platformWin32/winVolume.cpp:374–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374U64 Win32File::getSize()
375{
376 U64 size;
377
378 if (mStatus == Open)
379 {
380 // Special case if file is open (handles unflushed buffers)
381 if ( !GetFileSizeEx(mHandle, (PLARGE_INTEGER)&size) )
382 size = 0;
383 return size;
384 }
385 else
386 {
387 // Fallback to generic function
388 size = File::getSize();
389 }
390
391 return size;
392}
393
394U32 Win32File::calculateChecksum()
395{

Callers 10

_setupConstantsMethod · 0.45
_setupTargetMethod · 0.45
processMethod · 0.45
getAspectRatioMethod · 0.45
getBackBufferTexMethod · 0.45
setOptimalDisplaySizeMethod · 0.45
generateRenderTargetMethod · 0.45
onFrameRenderedMethod · 0.45

Calls 1

getSizeFunction · 0.85

Tested by

no test coverage detected