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

Method Save

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

Should Save(), Load() and Mmap() functions return stream/pointer in aligned state? Now they don't because tests don't require it.

Source from the content-addressed store, hash-verified

1012// Should Save(), Load() and Mmap() functions return stream/pointer in aligned state?
1013// Now they don't because tests don't require it.
1014void NoGlueLimitCountingScanner::Save(yostream* s) const {
1015 Y_ASSERT(!AdvancedScannerCompatibilityMode);
1016 LoadedScanner::Save(s, ScannerIOTypes::NoGlueLimitCountingScanner);
1017 if (Actions) {
1018 SavePodArray(s, Actions, *Actions);
1019 } else {
1020 const ActionIndex zeroSize = 0;
1021 SavePodType(s, zeroSize);
1022 }
1023}
1024
1025void NoGlueLimitCountingScanner::Load(yistream* s) {
1026 ui32 type;

Callers

nothing calls this directly

Calls 3

SavePodArrayFunction · 0.85
SavePodTypeFunction · 0.85
SaveFunction · 0.50

Tested by

no test coverage detected