Return a string that contains the copy of the referenced data.
| 36 | |
| 37 | // Return a string that contains the copy of the referenced data. |
| 38 | std::string Slice::ToString() const { |
| 39 | return std::string(reinterpret_cast<const char *>(data_), size_); |
| 40 | } |
| 41 | |
| 42 | std::string Slice::ToDebugString(size_t max_len) const { |
| 43 | size_t bytes_to_print = size_; |
no outgoing calls