commit | f72b1ac0edf971a12f99155204c4a8d309342995 | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Fri Aug 16 16:44:41 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Fri Aug 16 16:44:41 2013 -0700 |
tree | 0f3e612c3532bb0fa445d15497ad0c1387c6f0ef | |
parent | 7329a13f8a15d98167e57f7ee3a3ed9ceb9ac5d9 [diff] |
Added addComponent(vector<unsigned char>)
diff --git a/ndn-cpp/name.hpp b/ndn-cpp/name.hpp index e02d293..5c6754a 100644 --- a/ndn-cpp/name.hpp +++ b/ndn-cpp/name.hpp
@@ -126,6 +126,13 @@ void addComponent(unsigned char *value, unsigned int valueLength) { components_.push_back(Component(value, valueLength)); } + + /** + * Add a new component, copying from value. + */ + void addComponent(const std::vector<unsigned char> &value) { + components_.push_back(value); + } /** * Clear all the components.