toTypeId function
PIComposer APIPIComposer API

toTypeId#

int toTypeId(String type)

Computes a FNV-1a inspired 32-bit unsigned integer hash from a string.

This function converts a string type to a consistent uint32_t value by converting the input to uppercase and applying a hash algorithm. Returns 0 if the input string is empty.