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

Method Load

library/cpp/regex/pire/pire/extra/count.cpp:1025–1045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1023}
1024
1025void NoGlueLimitCountingScanner::Load(yistream* s) {
1026 ui32 type;
1027 LoadedScanner::Load(s, &type);
1028 ActionIndex actionsSize;
1029 if (type == ScannerIOTypes::NoGlueLimitCountingScanner) {
1030 LoadPodType(s, actionsSize);
1031
1032 if (actionsSize == 0) {
1033 ActionsBuffer.reset();
1034 Actions = nullptr;
1035 } else {
1036 ActionsBuffer = TActionsBuffer(new ActionIndex[actionsSize]);
1037 ActionsBuffer[0] = actionsSize;
1038 LoadPodArray(s, &ActionsBuffer[1], actionsSize - 1);
1039 Actions = ActionsBuffer.get();
1040 }
1041 } else {
1042 Y_ASSERT(type == ScannerIOTypes::LoadedScanner);
1043 AdvancedScannerCompatibilityMode = true;
1044 }
1045}
1046
1047const void* NoGlueLimitCountingScanner::Mmap(const void* ptr, size_t size) {
1048 NoGlueLimitCountingScanner scanner;

Callers

nothing calls this directly

Calls 5

LoadPodTypeFunction · 0.85
LoadPodArrayFunction · 0.85
LoadFunction · 0.50
resetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected