MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / CurrentFileLength

Method CurrentFileLength

src/vrcore/dirtools_public.cpp:303–311  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Purpose: returns size of the file -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

301// Purpose: returns size of the file
302//-----------------------------------------------------------------------------
303int64_t CDirIterator::CurrentFileLength() const
304{
305#if defined( _WIN32 )
306 LARGE_INTEGER li = { { m_pFindData->nFileSizeLow, ( LONG )m_pFindData->nFileSizeHigh } };
307 return li.QuadPart;
308#else
309 return ( int64_t )m_pFindData->size;
310#endif
311}
312
313#if defined( _WIN32 )
314//-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected