name: Optimization of Name implementation
Now, Name directly uses Block as underlying storage for name components
and name::Components (aka Name::Components) class is a helper wrapped on
top of Block class.
Change-Id: I15ca58cc6dba76dd02e973709b7b153c2613de51
refs: #1171
diff --git a/src/exclude.cpp b/src/exclude.cpp
index 677548c..11edd82 100644
--- a/src/exclude.cpp
+++ b/src/exclude.cpp
@@ -186,8 +186,8 @@
{
OBufferStream os;
Tlv::writeVarNumber(os, Tlv::NameComponent);
- Tlv::writeVarNumber(os, i->first.getValue().size());
- os.write(reinterpret_cast<const char *>(i->first.getValue().buf()), i->first.getValue().size());
+ Tlv::writeVarNumber(os, i->first.value_size());
+ os.write(reinterpret_cast<const char *>(i->first.value()), i->first.value_size());
wire_.push_back(Block(os.buf()));