| 49 | |
| 50 | template <class T> |
| 51 | Y_FORCE_INLINE TRef TRef::FromPod(const T& data) |
| 52 | { |
| 53 | static_assert(TTypeTraits<T>::IsPod || (std::is_standard_layout_v<T> && std::is_trivial_v<T>), "T must be a pod-type."); |
| 54 | return TRef(&data, sizeof(data)); |
| 55 | } |
| 56 | |
| 57 | Y_FORCE_INLINE TStringBuf TRef::ToStringBuf() const |
| 58 | { |
nothing calls this directly
no test coverage detected