Skip to content

Commit c445d93

Browse files
committed
add doc for TelegramBuffer::check_telegram_header_presence
1 parent af9541e commit c445d93

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

vpr/src/server/telegrambuffer.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,15 @@ class TelegramBuffer
8989
std::vector<std::string> m_errors;
9090
std::optional<TelegramHeader> m_header_opt;
9191

92+
/**
93+
* @brief Checks for the presence of the telegram header in the buffer.
94+
*
95+
* This function searches for the telegram header signature in the raw buffer.
96+
* If the signature is found, any bytes preceding the header start position
97+
* are discarded from the buffer.
98+
*
99+
* @return true if the telegram header signature is found, false otherwise.
100+
*/
92101
bool check_telegram_header_presence();
93102
};
94103

0 commit comments

Comments
 (0)