| 286 | |
| 287 | template <typename ResultType> |
| 288 | bool CheckInteger(ResultType& output, int64_t value) noexcept |
| 289 | { |
| 290 | constexpr int64_t minValue = std::numeric_limits<ResultType>::min(); |
| 291 | constexpr int64_t maxValue = std::numeric_limits<ResultType>::max(); |
| 292 | |
| 293 | if (minValue <= value && value <= maxValue) |
| 294 | { |
| 295 | output = static_cast<ResultType>(value); |
| 296 | return true; |
| 297 | } |
| 298 | |
| 299 | return false; |
| 300 | } |
| 301 | |
| 302 | template <typename ResultType> |
| 303 | bool CheckInteger(ResultType& output, uint64_t value) noexcept |
no test coverage detected