\r\n

51Degrees Device Detection C/C++  4.4

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

fiftyoneDegreesResultHash Struct Reference

Detailed Description

Singular User-Agent result returned by a Hash process method.

This extends the fiftyoneDegreesResultUserAgent structure by adding some Hash specific metrics.

Collaboration diagram for fiftyoneDegreesResultHash:

[legend]

Data Fields

fiftyoneDegreesResultUserAgent  b
Base User-Agent result.
uint32_t *  profileOffsets
Array of profile offsets where the index is the component index.
bool *  profileIsOverriden
Array of boolean flags indicating whether the result profile offset at the same index is one which has been overridden.
fiftyoneDegreesHashMatchMethod  method
The method used to provide the match result.
int32_t  iterations
Number of iterations required to get the device offset.
int32_t  difference
The total difference in hash code values between the matched substring and the actual substring.
int32_t  drift
The maximum drift for a matched substring from the character position where it was expected to be found.
int32_t  matchedNodes
The number of hashes matched in the User-Agent.
fiftyoneDegreesGraphTraceNode *  trace
The graph trace constructed during processing if the option was enabled (and the executable was compiled in debug mode). More...

Field Documentation

◆ trace

fiftyoneDegreesGraphTraceNode* fiftyoneDegreesResultHash::trace

The graph trace constructed during processing if the option was enabled (and the executable was compiled in debug mode).

This can be printed using the fiftyoneDegreesGraphTraceGet method


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/hash/hash.h
On This Page