A device detection library that is used natively or by 51Degrees products

fiftyoneDegreesConfigBase Struct Reference

Detailed Description

Base configuration structure containing common configuration options, and options that apply to structures and methods in the common library.

Data Fields

bool allInMemory
 True if the data file should be loaded entirely into continuous memory.
bool usesUpperPrefixedHeaders
 True if the HTTP header field names MIGHT include the prefix HTTP_.
bool freeData
 True if the memory containing the data set should be freed after it is no longer needed.
bool useTempFile
 Indicates whether a temporary file should be created instead of using the original file.
bool reuseTempFile
 Indicates that an existing temp file may be used.
const char ** tempDirs
 Array of temp directories which can be used in order of preference.
int tempDirCount
 Number of directories in the tempDirs array.
bool propertyValueIndex
 Indicates if an index to values for property and profiles should be created.

Field Documentation

◆ freeData

bool fiftyoneDegreesConfigBase::freeData

True if the memory containing the data set should be freed after it is no longer needed.

This only applies to externally allocated memory, anything allocated internally is automatically freed.

◆ reuseTempFile

bool fiftyoneDegreesConfigBase::reuseTempFile

Indicates that an existing temp file may be used.

This should be selected if multiple instances wish to use the same file to prevent high disk usage.


The documentation for this struct was generated from the following file: