2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 22:15:23 +00:00

[2491] Add a function to set binary data for a data field.

This commit is contained in:
Marcin Siodelski
2012-11-30 18:06:26 +01:00
parent 1bbe13152c
commit 1dc0f0871d
3 changed files with 47 additions and 0 deletions

View File

@@ -118,6 +118,12 @@ public:
/// @return read buffer holding binary data.
const OptionBuffer& readBinary(const uint32_t index = 0) const;
/// @brief Write binary data into a buffer.
///
/// @param buf buffer holding binary data to be written.
/// @param index buffer index.
void writeBinary(const OptionBuffer& buf, const uint32_t index = 0);
/// @brief Read a buffer as boolean value.
///
/// @param index buffer index.