MCPcopy Create free account
hub / github.com/Tencent/MMKV / readRawByte

Method readRawByte

Core/CodedInputDataCrypt.cpp:167–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167int8_t CodedInputDataCrypt::readRawByte() {
168 assert(m_position <= m_decryptPosition);
169 if (m_position == m_size) {
170 auto msg = "reach end, m_position: " + to_string(m_position) + ", m_size: " + to_string(m_size);
171 throw out_of_range(msg);
172 }
173 m_position++;
174
175 assert(m_decryptBufferPosition < m_decryptBufferSize);
176 auto *bytes = (int8_t *) m_decryptBuffer;
177 return bytes[m_decryptBufferPosition++];
178}
179
180int32_t CodedInputDataCrypt::readRawVarint32(bool discardPreData) {
181 consumeBytes(10, discardPreData);

Callers 1

readRawVarint32Method · 0.95

Calls 1

to_stringFunction · 0.50

Tested by

no test coverage detected