| 165 | } |
| 166 | |
| 167 | bool Connection::sendShortString(const char* str) { |
| 168 | size_t size = strlen(str); |
| 169 | |
| 170 | assert(size <= 255); |
| 171 | |
| 172 | MUST_TRANSFER_BOOL(sendByte(static_cast<uint8_t>(size))); |
| 173 | if (size > 0) { |
| 174 | MUST_TRANSFER_BOOL(sendBytes((const uint8_t*)str, size)); |
| 175 | } |
| 176 | |
| 177 | return true; |
| 178 | } |
| 179 | |
| 180 | bool Connection::sendPacketType(SendPacketType type) { |
| 181 | MUST_TRANSFER_BOOL(sendByte(0)); |
nothing calls this directly
no outgoing calls
no test coverage detected