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

Method UnpackLeaf

tools/triecompiler/lib/main.cpp:257–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255 {
256 }
257 void UnpackLeaf(const char* p, TVectorType& t) const {
258 const typename TVectorType::value_type* beg = reinterpret_cast<const typename TVectorType::value_type*>(p);
259 t.assign(beg, beg + ArraySize);
260 }
261 void PackLeaf(char* buffer, const TVectorType& data, size_t computedSize) const {
262 Y_ASSERT(computedSize == SizeOfValue && data.size() == ArraySize);
263 memcpy(buffer, data.data(), computedSize);

Callers

nothing calls this directly

Calls 1

assignMethod · 0.45

Tested by

no test coverage detected