2.2.3.10 TLVAppend()

static uint8_t TLVAppend (uint8_t * dataBufferStart, ftp_tlv_t * tlvData)[static]

Appends a TLV (Type-Length-Value) structure to a data buffer.

This function appends a given TLV structure to the specified data buffer. It updates the buffer with the TLV data, ensuring that the data is correctly formatted and aligned within the response buffer.

Parameters:
in,out dataBufferStart

- Pointer to the start of the data buffer where the TLV will be appended

in tlvData

- Pointer to the TLV structure containing the data to append

Returns:

The number of bytes appended to the buffer

Note:

Ensure that the data buffer has sufficient space to accommodate the TLV data.