Defined in carb/extras/MemoryUsage.h

inline size_t carb::extras::getMemorySizeMultiplier(const char *str)

Retrieves the memory size multiplier from a value suffix.


str[in] The string containing the memory size suffix. This may not be nullptr.


The multiplier to use to convert the memory value to bytes. Returns 1 if the memory suffix is not recognized. Supported suffixes are ‘KB’, ‘MB’, ‘GB’, ‘TB’, ‘PB’, ‘EB’, and bytes. All unknown suffixes will be treated as bytes.