* Is it safe to write to the packet, i.e. didn't we run over the buffer? * @param bytes_to_write The amount of bytes we want to try to write. * @return True iff the given amount of bytes can be written to the packet. */
| 88 | * @return True iff the given amount of bytes can be written to the packet. |
| 89 | */ |
| 90 | bool Packet::CanWriteToPacket(size_t bytes_to_write) |
| 91 | { |
| 92 | return this->Size() + bytes_to_write <= this->limit; |
| 93 | } |
| 94 | |
| 95 | /* |
| 96 | * The next couple of functions make sure we can send |
no test coverage detected