TODO: replace with templated functions
| 7 | { |
| 8 | // TODO: replace with templated functions |
| 9 | static int64_t graphGetValueFromPointer(const std::byte* dataPtr, const uint8_t dataTypeSize) |
| 10 | { |
| 11 | switch (dataTypeSize) |
| 12 | { |
| 13 | case 2: |
| 14 | return *reinterpret_cast<const int16_t*>(dataPtr); |
| 15 | |
| 16 | case 4: |
| 17 | return *reinterpret_cast<const int32_t*>(dataPtr); |
| 18 | |
| 19 | case 6: |
| 20 | return reinterpret_cast<const currency48_t*>(dataPtr)->asInt64(); |
| 21 | |
| 22 | default: |
| 23 | return 0; |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | // 0x004CF869 |
| 28 | static int64_t graphGetMaxValue(const GraphSettings& gs) |
no test coverage detected