MCPcopy Create free account
hub / github.com/comaps/comaps / PushBack

Method PushBack

libs/coding/fixed_bits_ddvector.hpp:152–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 }
151
152 void PushBack(TValue v)
153 {
154 if (v >= kLargeValue)
155 {
156 m_bits->WriteAtMost32Bits(kLargeValue, Bits);
157 m_excepts.push_back({m_count, v});
158 }
159 else
160 {
161 ++m_optCount;
162 m_bits->WriteAtMost32Bits(v, Bits);
163 }
164
165 ++m_count;
166 }
167
168 // Pushes a special (undefined) value.
169 void PushBackUndefined()

Callers 1

TestWithDataFunction · 0.45

Calls 2

WriteAtMost32BitsMethod · 0.80
push_backMethod · 0.45

Tested by 1

TestWithDataFunction · 0.36