Index: net/der/input.cc |
diff --git a/net/der/input.cc b/net/der/input.cc |
index 45edfdcca67fde5ad002f151d6f2deb7e39c0870..75d1c9c1847e37b383c23d53a08cf1d17f2948c1 100644 |
--- a/net/der/input.cc |
+++ b/net/der/input.cc |
@@ -23,6 +23,10 @@ bool Input::Equals(const Input& other) const { |
return memcmp(data_, other.data_, len_) == 0; |
} |
+std::string Input::AsString() const { |
+ return std::string(reinterpret_cast<const char*>(data_), len_); |
+} |
+ |
ByteReader::ByteReader(const Input& in) |
: data_(in.UnsafeData()), len_(in.Length()) { |
} |