/* Function for inserting the TLV block into a type_2_tag_t structure. 
The content of a TLV block structure pointed by the p_tlv_block is copied into a TLV block array within the structure pointed by the p_type_2_tag. */
static ret_code_t type_2_tag_tlv_block_insert(type_2_tag_t *p_type_2_tag, tlv_block_t *p_tlv_block)
/* Function for inserting the TLV block into a type_2_tag_t structure. 
The content of a TLV block structure pointed by the p_tlv_block is copied into a TLV block array within the structure pointed by the p_type_2_tag. */
static ret_code_t type_2_tag_tlv_block_insert(type_2_tag_t *p_type_2_tag, tlv_block_t *p_tlv_block)
{
    if (p_type_2_tag->tlv_count == p_type_2_tag->max_tlv_blocks)
    {
        return NRF_ERROR_NO_MEM;
    }
    p_type_2_tag->p_tlv_block_array[p_type_2_tag->tlv_count] = *p_tlv_block;
    p_type_2_tag->tlv_count++;
    return NRF_SUCCESS;
}