2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-03 23:45:27 +00:00

[2312] Added the method to return number of option data field.

This commit is contained in:
Marcin Siodelski
2012-11-27 14:32:34 +01:00
parent deaf3af3f2
commit 47e1dfee34
2 changed files with 55 additions and 2 deletions

View File

@@ -64,6 +64,11 @@ public:
OptionCustom(const OptionDefinition& def, Universe u,
OptionBufferConstIter first, OptionBufferConstIter last);
/// @brief Return a number of the data fields.
///
/// @return number of data fields held by the option.
uint32_t getDataFieldsNum() const { return (buffers_.size()); }
/// @brief Read a buffer as IP address.
///
/// @param index buffer index.