OpenClonk
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

◆ GetDirSize()

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

Definition at line 58 of file C4Network2Res.cpp.

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:1068

References ForEachFile(), and iSize.

Referenced by C4Network2Res::GetStandalone().

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: