| 28 | using std::string; |
| 29 | |
| 30 | static string byte_to_hex(const uint8_t byte) { |
| 31 | char buf[3]; |
| 32 | int ret = std::sprintf(buf, "%02x", (int)byte); |
| 33 | THRIFT_UNUSED_VARIABLE(ret); |
| 34 | assert(ret == 2); |
| 35 | assert(buf[2] == '\0'); |
| 36 | return buf; |
| 37 | } |
| 38 | |
| 39 | namespace apache { |
| 40 | namespace thrift { |
no outgoing calls
no test coverage detected