| 92 | // Read values from buffer |
| 93 | template <typename OutType, typename BufferType> |
| 94 | OutType read(BufferType const*& buffer) |
| 95 | { |
| 96 | static_assert(sizeof(BufferType) == 1, "BufferType must be a 1 byte type."); |
| 97 | OutType val{}; |
| 98 | std::memcpy(&val, static_cast<void const*>(buffer), sizeof(OutType)); |
| 99 | buffer += sizeof(OutType); |
| 100 | return val; |
| 101 | } |
| 102 | |
| 103 | inline int32_t getTrtSMVersionDec(int32_t smVersion) |
| 104 | { |
no outgoing calls
no test coverage detected