Lines Matching refs:T
431 template <class T>
432 static T ParseIntValue(const dex::u1** pptr, size_t size) { in ParseIntValue()
433 static_assert(std::is_integral<T>::value, "must be an integral type"); in ParseIntValue()
436 SLICER_CHECK(size <= sizeof(T)); in ParseIntValue()
438 T value = 0; in ParseIntValue()
440 value |= T(*(*pptr)++) << (i * 8); in ParseIntValue()
444 if (std::is_signed<T>::value) { in ParseIntValue()
445 size_t shift = (sizeof(T) - size) * 8; in ParseIntValue()
446 value = T(value << shift) >> shift; in ParseIntValue()
454 template <class T>
455 static T ParseFloatValue(const dex::u1** pptr, size_t size) { in ParseFloatValue()
457 SLICER_CHECK(size <= sizeof(T)); in ParseFloatValue()
459 T value = 0; in ParseFloatValue()
460 int start_byte = sizeof(T) - size; in ParseFloatValue()