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

Method readRawByte

Core/CodedInputData.cpp:236–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236int8_t CodedInputData::readRawByte() {
237 if (m_position == m_size) {
238 auto msg = "reach end, m_position: " + to_string(m_position) + ", m_size: " + to_string(m_size);
239 throw out_of_range(msg);
240 }
241 auto *bytes = (int8_t *) m_ptr;
242 return bytes[m_position++];
243}
244
245#ifdef MMKV_APPLE
246#endif // MMKV_APPLE

Callers 4

readInt64Method · 0.95
readRawVarint32Method · 0.95
readRawLittleEndian32Method · 0.95
readRawLittleEndian64Method · 0.95

Calls 1

to_stringFunction · 0.50

Tested by

no test coverage detected