GCubeSDK
©2026 FenixFox®Studios

Utils

Utility class providing common functionality used across the engine.
This class centralizes common utility functions that were previously duplicated across multiple classes, improving code maintainability and reducing bloat.

Methods

static string generateUUID()

Generates a unique UUID string for objects

static u32 generateId(const string& className)

Generates a unique ID for objects of a specific class

className Name of the class for ID generation

static void printHex(const void* data, u32 count, u8 width)

Prints the specified number of bytes from a pointer in hexadecimal format

data Pointer to the data to print
count Number of bytes to print
width Number of cols displayed

constexpr u32 shash(const char* s, u32 h)

string hash helper

s c-string input
h initial seed 2166136261u

Properties