Lines Matching refs:T
432 template <class T>
433 static T ParseIntValue(const dex::u1** pptr, size_t size) { in ParseIntValue()
434 static_assert(std::is_integral<T>::value, "must be an integral type"); in ParseIntValue()
437 SLICER_CHECK_LE(size, sizeof(T)); in ParseIntValue()
439 T value = 0; in ParseIntValue()
441 value |= T(*(*pptr)++) << (i * 8); in ParseIntValue()
445 if (std::is_signed<T>::value) { in ParseIntValue()
446 size_t shift = (sizeof(T) - size) * 8; in ParseIntValue()
447 value = T(value << shift) >> shift; in ParseIntValue()
455 template <class T>
456 static T ParseFloatValue(const dex::u1** pptr, size_t size) { in ParseFloatValue()
458 SLICER_CHECK_LE(size, sizeof(T)); in ParseFloatValue()
460 T value = 0; in ParseFloatValue()
461 int start_byte = sizeof(T) - size; in ParseFloatValue()