|
HDK
|
#include "SYS_API.h"#include "SYS_Align.h"#include "SYS_AtomicInt.h"#include "SYS_Types.h"#include <cstddef>
Include dependency graph for SYS_Memory.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | SYS_MemoryUser |
| class | SYS_MemoryTable |
| class | SYS_Memory |
Macros | |
| #define | SYS_MEMORY_SUBCLASS(STATIC, prefix, table) |
| #define | SYS_MEMPRINTSIZE 32 |
Functions | |
| SYS_API void | SYSprintMemory (char buf[SYS_MEMPRINTSIZE], int64 memory, int field_width=-1) |
| #define SYS_MEMORY_SUBCLASS | ( | STATIC, | |
| prefix, | |||
| table | |||
| ) |
When implementing in a different library, the following macro can be used to implement a localized interface. For example, we might have SYS_MEMORY_SUBCLASS(, GU, theGUMemoryTable) or class GU_Memory { public: SYS_MEMORY_SUBCLASS(static, GU, myMemoryTable) private: static SYS_MemoryTable myMemoryTable; };
Definition at line 248 of file SYS_Memory.h.
| #define SYS_MEMPRINTSIZE 32 |
Convenience function to print memory in a consistent format (i.e. 12.3 KB). To print "18446744073709551616.00 MB" requires 27 characters. There are 5 extra characters for good measure in SYS_MEMPRINTSIZE
Definition at line 267 of file SYS_Memory.h.