CKlvEnc class definition
More...
List of all members.
Public Member Functions |
|
| CKlvEnc (const ICoT2KlvConv::KLV_MODE klv_mode) |
| void | SetOuterKey (const char *key) |
| | Set an outer key. For example, Universal key.
|
| void | SetCheckSumKey (const char *key) |
| | Set Checksum item key.
|
|
void | AddItem (const char *key, const char *value, const size_t size) |
| char * | Encode (size_t &size) |
| | Encode KLV data.
|
Detailed Description
\
CKlvEnc class definition. KLV encoding module.
Member Function Documentation
| char* CKlvEnc::Encode |
( |
size_t & |
size | ) |
|
Encodes KLV data, puts it into underlying byte array, returns encoded data buffer and its length.
- Parameters:
-
| size | a size_t& Resulting byte array size. |
- Returns:
- char*. Returns a poiner to the encoded data buffer.
| void CKlvEnc::SetCheckSumKey |
( |
const char * |
key | ) |
|
Sets Checksum item key. If not NULL, a checksum item will be calculated and added after encoding
- Parameters:
-
| key | a const char*. An ASCI Key. |
- Returns:
- void.
| void CKlvEnc::SetOuterKey |
( |
const char * |
key | ) |
|
Sets a high level (outer) key.
- Parameters:
-
| key | a const char*. A pointer to key string. |
- Returns:
- void.