std::string toDebugString()

in hessian2/object.hpp [450:462]


  std::string toDebugString() const override {
    // By default, only the first 16 bytes are output
    size_t limit_len = 16;
    std::ostringstream ostream;
    if (data_.size() <= limit_len) {
      limit_len = data_.size();
    }
    for (size_t i = 0; i < limit_len; i++) {
      ostream << std::hex << data_[i] << " ";
    }
    return absl::StrFormat("Type: binary, size[%d], value[%s]", data_.size(),
                           ostream.str());
  }