| 66 | |
| 67 | template <class T> |
| 68 | static inline void LoadPodType(IInputStream* rh, T& t) { |
| 69 | const size_t res = rh->Load(&t, sizeof(T)); |
| 70 | |
| 71 | if (Y_UNLIKELY(res != sizeof(T))) { |
| 72 | ::NPrivate::ThrowLoadEOFException(sizeof(T), res, TStringBuf("pod type")); |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | template <class T> |
| 77 | static inline void SavePodArray(IOutputStream* rh, const T* arr, size_t count) { |
no test coverage detected