\r\n

51Degrees Device Detection C/C++  4.4

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. More...
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. More...
bool  useTempFile
Indicates whether a temporary file should be created instead of using the original file. More...
bool  reuseTempFile
Indicates that an existing temp file may be used. More...
const char **  tempDirs
Array of temp directories which can be used in order of preference. More...
int  tempDirCount
Number of directories in the tempDirs array. More...

Field Documentation

◆ allInMemory

bool fiftyoneDegreesConfigBase::allInMemory

True if the data file should be loaded entirely into continuous memory.

Examples
Hash/Performance.c.

◆ 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.

◆ tempDirCount

int fiftyoneDegreesConfigBase::tempDirCount

Number of directories in the tempDirs array.

◆ tempDirs

const char** fiftyoneDegreesConfigBase::tempDirs

Array of temp directories which can be used in order of preference.

◆ useTempFile

bool fiftyoneDegreesConfigBase::useTempFile

Indicates whether a temporary file should be created instead of using the original file.


The documentation for this struct was generated from the following file:
  • /home/runner/work/device-detection-cxx/device-detection-cxx/common/device-detection-cxx/src/common-cxx/config.h
On This Page