|
|
| 316 |
/** |
316 |
/** |
| 317 |
* \brief Deserialize and remove the header from the internal buffer. |
317 |
* \brief Deserialize and remove the header from the internal buffer. |
| 318 |
* |
318 |
* |
| 319 |
* This method invokes Header::Deserialize. |
319 |
* This method invokes Header::Deserialize (begin) and should be used for |
|
|
320 |
* variable-length headers. |
| 320 |
* |
321 |
* |
| 321 |
* \param header a reference to the header to remove from the internal buffer. |
322 |
* \param header a reference to the header to remove from the internal buffer. |
| 322 |
* \returns the number of bytes removed from the packet. |
323 |
* \returns the number of bytes removed from the packet. |
| 323 |
*/ |
324 |
*/ |
| 324 |
uint32_t RemoveHeader (Header &header); |
325 |
uint32_t RemoveHeader (Header &header); |
| 325 |
/** |
326 |
/** |
|
|
327 |
* \brief Deserialize and remove the header from the internal buffer. |
| 328 |
* |
| 329 |
* This method invokes Header::Deserialize (begin, end) and should be |
| 330 |
* used for variable-length headers (where the size is determined somehow |
| 331 |
* by the caller). |
| 332 |
* |
| 333 |
* \param header a reference to the header to remove from the internal buffer. |
| 334 |
* \param size number of bytes to deserialize |
| 335 |
* \returns the number of bytes removed from the packet. |
| 336 |
*/ |
| 337 |
uint32_t RemoveHeader (Header &header, uint32_t size); |
| 338 |
/** |
| 326 |
* \brief Deserialize but does _not_ remove the header from the internal buffer. |
339 |
* \brief Deserialize but does _not_ remove the header from the internal buffer. |
| 327 |
* s |
340 |
* s |
| 328 |
* This method invokes Header::Deserialize. |
341 |
* This method invokes Header::Deserialize. |
|
|
| 332 |
*/ |
345 |
*/ |
| 333 |
uint32_t PeekHeader (Header &header) const; |
346 |
uint32_t PeekHeader (Header &header) const; |
| 334 |
/** |
347 |
/** |
|
|
348 |
* \brief Deserialize but does _not_ remove the header from the internal buffer. |
| 349 |
* s |
| 350 |
* This method invokes Header::Deserialize (begin, end) and should be used |
| 351 |
* for variable-length headers (where the size is determined somehow |
| 352 |
* by the caller). |
| 353 |
* |
| 354 |
* \param header a reference to the header to read from the internal buffer. |
| 355 |
* \param size number of bytes to deserialize |
| 356 |
* \returns the number of bytes read from the packet. |
| 357 |
*/ |
| 358 |
uint32_t PeekHeader (Header &header, uint32_t size) const; |
| 359 |
/** |
| 335 |
* \brief Add trailer to this packet. |
360 |
* \brief Add trailer to this packet. |
| 336 |
* |
361 |
* |
| 337 |
* This method invokes the |
362 |
* This method invokes the |