summaryrefslogtreecommitdiffstats
path: root/src/lib/dns/labelsequence.h
diff options
context:
space:
mode:
authorJelte Jansen <jelte@isc.org>2012-02-21 12:37:07 +0100
committerJelte Jansen <jelte@isc.org>2012-02-21 12:37:07 +0100
commit11fc8fbb59146320ba5ce8a86d08f937878250b3 (patch)
treeb207f154b7aae0a467af8ed0179aa552cbc53074 /src/lib/dns/labelsequence.h
parent[1602] initial implementation (diff)
downloadkea-11fc8fbb59146320ba5ce8a86d08f937878250b3.tar.xz
kea-11fc8fbb59146320ba5ce8a86d08f937878250b3.zip
[1602] get rid of internal buffer
Diffstat (limited to 'src/lib/dns/labelsequence.h')
-rw-r--r--src/lib/dns/labelsequence.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/dns/labelsequence.h b/src/lib/dns/labelsequence.h
index 57e631c8fd..87704f6093 100644
--- a/src/lib/dns/labelsequence.h
+++ b/src/lib/dns/labelsequence.h
@@ -26,20 +26,20 @@ public:
LabelSequence(const Name& name);
~LabelSequence();
- const char* getData() const;
const char* getData(size_t* len) const;
bool equals(const LabelSequence& other, bool case_sensitive = false) const;
void split(int i);
- size_t getLabelCount() { return last_label_ - first_label_ + 1; }
+ size_t getLabelCount() { return last_label_ - first_label_; }
+
+ const Name& getName() const { return name_; }
private:
const Name& name_;
size_t first_label_;
size_t last_label_;
- char* data_;
size_t* offsets_;
};