| 138 | } |
| 139 | |
| 140 | void CodedOutputData::writeRawVarint32(int32_t value) { |
| 141 | while (true) { |
| 142 | if ((value & ~0x7f) == 0) { |
| 143 | this->writeRawByte(static_cast<uint8_t>(value)); |
| 144 | return; |
| 145 | } else { |
| 146 | this->writeRawByte(static_cast<uint8_t>((value & 0x7F) | 0x80)); |
| 147 | value = logicalRightShift32(value, 7); |
| 148 | } |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | void CodedOutputData::writeRawVarint64(int64_t value) { |
| 153 | while (true) { |
no test coverage detected