Lines Matching refs:T
56 template <typename T, typename S>
58 static T unpack(const void* ptr) { in unpack()
59 static_assert(sizeof(T) == sizeof(S), in unpack()
61 return *(const T*)ptr; in unpack()
65 template <typename T, typename S>
66 struct UnpackerT<T*, S> {
67 static T* unpack(const void* ptr) {
68 return (T*)(uintptr_t)(*(const S*)ptr);
79 template <typename T, typename S>
80 inline T Unpack(const void* ptr) {
81 return UnpackerT<T, S>::unpack(ptr);