* Check whether the packet, given the position of the "write" pointer, has read * enough of the packet to contain its size. * @return True iff there is enough data in the packet to contain the packet's size. */
| 236 | * @return True iff there is enough data in the packet to contain the packet's size. |
| 237 | */ |
| 238 | bool Packet::HasPacketSizeData() const |
| 239 | { |
| 240 | return this->pos >= EncodedLengthOfPacketSize(); |
| 241 | } |
| 242 | |
| 243 | /** |
| 244 | * Get the number of bytes in the packet. |