Index: net/der/input.h |
diff --git a/net/der/input.h b/net/der/input.h |
index f8eb467a482dc765788c720da9e4ec6b9102522d..c8ab5def0a89e8dc37b05ccbb110947ebf152e38 100644 |
--- a/net/der/input.h |
+++ b/net/der/input.h |
@@ -55,6 +55,12 @@ class NET_EXPORT_PRIVATE Input { |
// Return true if the Input's data and |other|'s data are byte-wise equal. |
bool Equals(const Input& other) const; |
+ // Return true if the Input's data and |data| are byte-wise equal. |
+ template <size_t N> |
+ bool Equals(const uint8_t(&data)[N]) const { |
+ return Equals(Input(data)); |
Ryan Sleevi
2015/06/29 14:45:24
So, this isn't ideal because it double-instantiate
eroman
2015/06/29 15:19:00
Removed.
|
+ } |
+ |
// Returns a pointer to the Input's data. This method is marked as "unsafe" |
// because access to the Input's data should be done through ByteReader |
// instead. This method should only be used where using a ByteReader truly |