MCPcopy Create free account
hub / github.com/catboost/catboost / LoadPodType

Function LoadPodType

util/ysaveload.h:68–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67template <class T>
68static 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
76template <class T>
77static inline void SavePodArray(IOutputStream* rh, const T* arr, size_t count) {

Callers 6

LoadMethod · 0.85
LoadMethod · 0.85
LoadMethod · 0.85
ValidateHeaderFunction · 0.85
LoadScannerMethod · 0.85
LoadMethod · 0.85

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected