| 165 | } |
| 166 | |
| 167 | int8_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 | |
| 180 | int32_t CodedInputDataCrypt::readRawVarint32(bool discardPreData) { |
| 181 | consumeBytes(10, discardPreData); |
no test coverage detected