OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
DirSizeHelper Class Reference

Static Public Member Functions

static bool GetDirSize (const char *szPath, uint32_t *pSize, uint32_t inMaxSize=~0)
 

Detailed Description

Definition at line 42 of file C4Network2Res.cpp.

Member Function Documentation

static bool DirSizeHelper::GetDirSize ( const char *  szPath,
uint32_t *  pSize,
uint32_t  inMaxSize = ~0 
)
inlinestatic

Definition at line 58 of file C4Network2Res.cpp.

References ForEachFile().

Referenced by C4Network2Res::GetStandalone().

59  {
60  // Security
61  if (!pSize) return false;
62  // Fold it
63  iSize = 0; iMaxSize = inMaxSize;
64  ForEachFile(szPath, &Helper);
65  // Return
66  *pSize = iSize;
67  return true;
68  }
int ForEachFile(const char *szDirName, bool(*fnCallback)(const char *))
Definition: StdFile.cpp:1044

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: