Configuration and settings

EsSystemGetOptimalWorkQueueThreadCount

uintptr_t EsSystemGetOptimalWorkQueueThreadCount();

Returns the number of processors. EsWorkQueue uses this as its thread count.

EsSystemConfigurationReadInteger

int64_t EsSystemConfigurationReadInteger(STRING section, STRING key, int64_t defaultValue = 0);

Reads an integer from the system configuration. Returns defaultValue if the section or key is missing.

EsSystemConfigurationReadString

char *EsSystemConfigurationReadString(STRING section, STRING key, size_t *valueBytes = ES_NULL);

Free with EsHeapFree.

EsSystemConfigurationReadFileTypes

void EsSystemConfigurationReadFileTypes(EsBuffer *buffer);

Read the "file_type" sections of the system configuration INI to the buffer.