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

Method getSize

Engine/source/platformWin32/winVolume.cpp:365–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365U64 Win32File::getSize()
366{
367 U64 size;
368
369 if (mStatus == Open)
370 {
371 // Special case if file is open (handles unflushed buffers)
372 if ( !GetFileSizeEx(mHandle, (PLARGE_INTEGER)&size) )
373 size = 0;
374 return size;
375 }
376 else
377 {
378 // Fallback to generic function
379 size = File::getSize();
380 }
381
382 return size;
383}
384
385U32 Win32File::calculateChecksum()
386{

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