/* Remove a specified length data from the start of data buffer hold by specified rtk_buffer. This function returns the memory to the headroom.  */
unsigned char RtbRemoveHead(RTK_BUFFER *RtkBuffer, uint32_t Length)
/* Remove a specified length data from the start of data buffer hold by specified rtk_buffer. This function returns the memory to the headroom.  */
unsigned char RtbRemoveHead(RTK_BUFFER *RtkBuffer, uint32_t Length)
{
    if (RtkBuffer->Length >= Length)
    {
        RtkBuffer->Data += Length;
        RtkBuffer->Length -= Length;
        RtkBuffer->HeadRoom += Length;
        return  true;
    }
    return false;
}