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

Method Save

library/cpp/regex/pire/pire/scanner_io.cpp:35–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33namespace Pire {
34
35void SimpleScanner::Save(yostream* s) const
36{
37 SavePodType(s, Header(ScannerIOTypes::SimpleScanner, sizeof(m)));
38 Impl::AlignSave(s, sizeof(Header));
39 Locals mc = m;
40 mc.initial -= reinterpret_cast<size_t>(m_transitions);
41 SavePodType(s, mc);
42 Impl::AlignSave(s, sizeof(mc));
43 SavePodType(s, Empty());
44 Impl::AlignSave(s, sizeof(Empty()));
45 if (!Empty()) {
46 Y_ASSERT(m_buffer);
47 Impl::AlignedSaveArray(s, m_buffer.Get(), BufSize());
48 }
49}
50
51void SimpleScanner::Load(yistream* s)
52{

Callers

nothing calls this directly

Calls 12

SavePodTypeFunction · 0.85
AlignSaveFunction · 0.85
AlignedSaveArrayFunction · 0.85
SavePodArrayFunction · 0.85
HeaderClass · 0.50
EmptyFunction · 0.50
SaveFunction · 0.50
GetMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected