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

Function LoadPodArray

util/ysaveload.h:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81template <class T>
82static inline void LoadPodArray(IInputStream* rh, T* arr, size_t count) {
83 const size_t len = sizeof(T) * count;
84 const size_t res = rh->Load(arr, len);
85
86 if (Y_UNLIKELY(res != len)) {
87 ::NPrivate::ThrowLoadEOFException(len, res, TStringBuf("pod array"));
88 }
89}
90
91template <class It>
92static inline void SaveIterRange(IOutputStream* rh, It b, It e) {

Callers 15

LoadStrFunction · 0.85
LoadMethod · 0.85
LoadMethod · 0.85
AlignLoadFunction · 0.85
AlignedLoadArrayFunction · 0.85
LoadMethod · 0.85
MergeFromMethod · 0.85
LoadMethod · 0.85
MergeFromMethod · 0.85
LoadMethod · 0.85
LoadMethod · 0.85
LoadArrayMethod · 0.85

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected