|
virtual | ~IKlvEncoder (void) |
| Virtual destructor.
|
|
virtual void | SetOuterKey (const char *key)=0 |
| Set an outer key. For example, Universal key. More...
|
|
virtual void | SetOuterKey (const char *key, IKlvItem::KEY_LENGTH keySize)=0 |
| Set an outer key (binary). More...
|
|
virtual void | SetCheckSumKey (const char *key)=0 |
| Set Checksum item key. More...
|
|
virtual void | SetCheckSumKey (const char *key, IKlvItem::KEY_LENGTH keySize)=0 |
| Set Checksum item key (binary). More...
|
|
virtual void | AddKlvItem (IKlvItem *klvItem)=0 |
| Add KlvItem. More...
|
|
virtual void | AddKlvItem (const char *key, const char *value, const size_t size)=0 |
| Create and Add KlvItem. More...
|
|
virtual void | AddKlvItem (const char *key, IKlvItem::KEY_LENGTH keySize, const char *value, const size_t size)=0 |
| Create and Add KLV item More...
|
|
virtual void | AddKlvItem (const char key, const unsigned char value)=0 |
| Create and Add KLV item 1 byte key, char value. More...
|
|
virtual void | AddKlvItem (const char key, const unsigned short value)=0 |
| Create and Add KLV item 1 byte key, short value. More...
|
|
virtual void | AddKlvItem (const char key, const unsigned int value)=0 |
| Create and Add KLV item 1 byte key, int value. More...
|
|
virtual void | AddKlvItem (const char key, const unsigned __int64 value)=0 |
| Create and Add KLV item 1 byte key, __int64 value. More...
|
|
virtual void | AddKlvItem (const char *key, const unsigned char value)=0 |
| Create and Add KLV item 1 byte key, char value. More...
|
|
virtual void | AddKlvItem (const char *key, const unsigned short value)=0 |
| Create and Add KLV item, short value. More...
|
|
virtual void | AddKlvItem (const char *key, const unsigned int value)=0 |
| Create and Add KLV item, int value. More...
|
|
virtual void | AddKlvItem (const char *key, const unsigned __int64 value)=0 |
| Create and Add KLV item, __int64 value. More...
|
|
virtual void | AddKlvItemBin (const char *key, const unsigned char value)=0 |
| Create and Add KLV Item using Binary Key and char value. More...
|
|
virtual void | AddKlvItemBin (const char *key, const unsigned short value)=0 |
| Create and Add KLV Item using Binary Key and short value. More...
|
|
virtual void | AddKlvItemBin (const char *key, const unsigned int value)=0 |
| Create and Add KLV Item using Binary Key and int value. More...
|
|
virtual void | AddKlvItemBin (const char *key, const unsigned __int64 value)=0 |
| Create and Add KLV Item using Binary Key and __int64 value. More...
|
|
virtual void | AddKlvItem (const char *key, IKlvItem::KEY_LENGTH keySize, const unsigned char value)=0 |
| Create and Add KLV item binary key, char value. More...
|
|
virtual void | AddKlvItem (const char *key, IKlvItem::KEY_LENGTH keySize, const unsigned short value)=0 |
| Create and Add KLV item binary key, short value. More...
|
|
virtual void | AddKlvItem (const char *key, IKlvItem::KEY_LENGTH keySize, const unsigned int value)=0 |
| Create and Add KLV item binary key, char value. More...
|
|
virtual void | AddKlvItem (const char *key, IKlvItem::KEY_LENGTH keySize, const unsigned __int64 value)=0 |
| Create and Add KLV item binary key, __int64 value. More...
|
|
virtual void | Sort ()=0 |
| Sort items. More...
|
|
virtual char * | Encode (size_t &size)=0 |
| Encode KLV data. More...
|
|
virtual void | SetBuffer (char *buf, const size_t size=MAX_KLV_SIZE)=0 |
| Configure KLV buffer. More...
|
|
virtual void | FreeInternalBuffer ()=0 |
| FreeInternalBuffer. More...
|
|
IKlvEncoder KLV encoder interface
KLV Encoder class allows KLV Items addition and their encoding into the binary data buffer.
KLV items addition
There are different ways to add KlvItems to the KlvEncoder
- Explicitly create KlvItem and add it to KlvEncoder. See AddKlvItem( IKlvItem* klvItem ) method.
- Use General form AddKlvItem function. See AddKlvItem( const char* key, IKlvItem::KEY_LENGTH keySize, const char* value, const size_t size ) method
- Use one of AddKlvItem functions with 1 byte Key (for example, used in LDS metadata)
- See also
- AddKlvItem( const char key, const unsigned char value )
-
AddKlvItem( const char key, const unsigned short value )
-
AddKlvItem( const char key, const unsigned int value )
-
AddKlvItem( const char key, const unsigned __int64 value )
- Use one of AddKlvItem functions where ASCII string defines a key (key length is detected automatically)
- See also
- AddKlvItem( const char* key, const unsigned char value )
-
AddKlvItem( const char* key, const unsigned short value )
-
AddKlvItem( const char* key, const unsigned int value )
-
AddKlvItem( const char* key, const unsigned __int64 value )
- Use one of AddKlvItemBin functions where the Key is a binary array (key length is specified during Encoder creation in the CreateKlvEncoder function)
- See also
- AddKlvItemBin( const char* key, const unsigned char value )
-
AddKlvItemBin( const char* key, const unsigned short value )
-
AddKlvItemBin( const char* key, const unsigned int value )
-
AddKlvItemBin( const char* key, const unsigned __int64 value )
- Use one of AddKlvItem functions where the Key is a binary array and the key length specified by the keySize parameter
- See also
- AddKlvItem( const char* key, IKlvItem::KEY_LENGTH keySize, const unsigned char value )
-
AddKlvItem( const char* key, IKlvItem::KEY_LENGTH keySize, const unsigned short value )
-
AddKlvItem( const char* key, IKlvItem::KEY_LENGTH keySize, const unsigned int value )
-
AddKlvItem( const char* key, IKlvItem::KEY_LENGTH keySize, const unsigned __int64 value )
- Note
- Note, that providing a Key in a binary form improves library performance, as there is no need for ASCII to binary conversion for each key
- Examples:
- klvtestapp.cpp, and klvtestappuds.cpp.