| 234 | } |
| 235 | |
| 236 | int8_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 |
no test coverage detected