| 26 | inline void EncodeFixed64(char* buf, uint64_t value) { memcpy(buf, &value, sizeof(value)); } |
| 27 | |
| 28 | inline void PutFixed64(std::string* dst, uint64_t value) { |
| 29 | char buf[sizeof(value)]; |
| 30 | EncodeFixed64(buf, value); |
| 31 | dst->append(buf, sizeof(buf)); |
| 32 | } |
| 33 | |
| 34 | inline void EncodeBigEndian32(char* buf, uint32_t value) { |
| 35 | buf[0] = (value >> 24) & 0xff; |
no test coverage detected