MCPcopy Create free account
hub / github.com/SlimeVR/SlimeVR-Tracker-ESP / sendShortString

Method sendShortString

src/network/connection.cpp:167–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167bool 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
180bool Connection::sendPacketType(SendPacketType type) {
181 MUST_TRANSFER_BOOL(sendByte(0));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected