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

fiftyoneDegreesHashValueProfiles Struct Reference

Detailed Description

Index from each value of the properties named when the data set is initialised to the profiles holding it, so those profiles are found without reading every profile.

Property i is the first in the properties collection named names[i]. Each of its values has a key, from firstKeys[i] to firstKeys[i + 1] - 1, in the order of the values collection from firstValueIndexes[i]. The profiles holding the value with key k are profiles[starts[k]] to profiles[starts[k + 1] - 1]. Each is a position in the profile offsets collection, in ascending order, which is the order of the profiles in the data file.

Data Fields

uint32_t propertiesCount
 Number of properties named.
uint32_t keysCount
 Number of values with a key.
uint32_t profilesCount
 Number of entries in profiles.
const char ** names
 Copy of each name the caller gave, in the order given, without nulls or repeats.
uint32_t * propertyIndexes
 Index in the properties collection of each property, or UINT32_MAX when the data file has no property of the name.
uint32_t * firstValueIndexes
 Index in the values collection of the first value of each property.
uint32_t * firstKeys
 Key of the first value of each property, then keysCount.
uint32_t * starts
 Position in profiles of the first profile of each key, then profilesCount.
uint32_t * profiles
 Positions in the profile offsets collection.

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