| 150 | } |
| 151 | |
| 152 | void CodedOutputData::writeRawVarint64(int64_t value) { |
| 153 | while (true) { |
| 154 | if ((value & ~0x7f) == 0) { |
| 155 | this->writeRawByte(static_cast<uint8_t>(value)); |
| 156 | return; |
| 157 | } else { |
| 158 | this->writeRawByte(static_cast<uint8_t>((value & 0x7f) | 0x80)); |
| 159 | value = logicalRightShift64(value, 7); |
| 160 | } |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | void CodedOutputData::writeRawLittleEndian32(int32_t value) { |
| 165 | this->writeRawByte(static_cast<uint8_t>((value) &0xff)); |
no test coverage detected