diff options
author | Mukund Sivaraman <muks@isc.org> | 2012-07-11 06:49:29 +0200 |
---|---|---|
committer | Mukund Sivaraman <muks@isc.org> | 2012-07-11 06:49:31 +0200 |
commit | 99f765ae8f5294490a939cc87d3811f4b3cb9516 (patch) | |
tree | d98315c926a48f842f3512b85d82fbd6a9ee4612 /src/lib/dns/labelsequence.h | |
parent | [2086] add one more test (diff) | |
download | kea-99f765ae8f5294490a939cc87d3811f4b3cb9516.tar.xz kea-99f765ae8f5294490a939cc87d3811f4b3cb9516.zip |
[2087] Add the LabelSequence::getOffsetData() method
Diffstat (limited to 'src/lib/dns/labelsequence.h')
-rw-r--r-- | src/lib/dns/labelsequence.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/dns/labelsequence.h b/src/lib/dns/labelsequence.h index c2149f0ce8..019250e72c 100644 --- a/src/lib/dns/labelsequence.h +++ b/src/lib/dns/labelsequence.h @@ -96,6 +96,16 @@ public: /// \return Pointer to the wire-format data of this label sequence const uint8_t* getData(size_t* len) const; + /// \brief Return the offset data for this LabelSequence + /// + /// The offsets are returned in the <code>placeholder</code> array. + /// + /// \param len Pointer to a size_t where the number of offsets + /// will be stored + /// \param placeholder Array where the offset data will be returned + void getOffsetData(size_t* len, + uint8_t placeholder[Name::MAX_LABELS]) const; + /// \brief Return the length of the wire-format data of this LabelSequence /// /// This method returns the number of octets for the data that would |