Header object.
More...
#include <rdkafkacpp.h>
Header object.
This object represents a single Header with a key value pair and an ErrorCode
◆ Header() [1/3]
RdKafka::Headers::Header::Header |
( |
const std::string & |
key, |
|
|
const void * |
value, |
|
|
size_t |
value_size |
|
) |
| |
|
inline |
Header object to encapsulate a single Header.
- Parameters
-
key | the string value for the header key |
value | the bytes of the header value, or NULL |
value_size | the length in bytes of the header value |
◆ Header() [2/3]
RdKafka::Headers::Header::Header |
( |
const std::string & |
key, |
|
|
const void * |
value, |
|
|
size_t |
value_size, |
|
|
const RdKafka::ErrorCode |
err |
|
) |
| |
|
inline |
Header object to encapsulate a single Header.
- Parameters
-
key | the string value for the header key |
value | the bytes of the header value |
value_size | the length in bytes of the header value |
err | the error code if one returned |
◆ Header() [3/3]
RdKafka::Headers::Header::Header |
( |
const Header & |
other | ) |
|
|
inline |
Copy constructor.
- Parameters
-
other | Header to make a copy of. |
◆ operator=()
Header& RdKafka::Headers::Header::operator= |
( |
const Header & |
other | ) |
|
|
inline |
Assignment operator.
- Parameters
-
other | Header to make a copy of. |
◆ key()
std::string RdKafka::Headers::Header::key |
( |
| ) |
const |
|
inline |
- Returns
- the key/name associated with this Header
◆ value()
const void* RdKafka::Headers::Header::value |
( |
| ) |
const |
|
inline |
- Returns
- returns the binary value, or NULL
◆ value_string()
const char* RdKafka::Headers::Header::value_string |
( |
| ) |
const |
|
inline |
- Returns
- returns the value casted to a nul-terminated C string, or NULL.
◆ value_size()
size_t RdKafka::Headers::Header::value_size |
( |
| ) |
const |
|
inline |
- Returns
- Value Size the length of the Value in bytes
◆ err()
- Returns
- the error code of this Header (usually ERR_NO_ERROR)
The documentation for this class was generated from the following file: