MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / nboUnpackString

Function nboUnpackString

src/net/Pack.cpp:492–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490
491
492void* nboUnpackString(void* b, void* m, int len) {
493 if (!m || len == 0) { return b; }
494 if (ErrorChecking) {
495 if (Length < (unsigned int)len) {
496 Error = true;
497 ((char*)m)[0] = '\0';
498 return b;
499 }
500 else {
501 Length -= len;
502 }
503 }
504 ::memcpy(m, b, len);
505 return (void*)((char*)b + len);
506}
507
508
509void* nboUnpackStdString(void* b, std::string& str) {

Callers 15

handleMsgAddPlayerFunction · 0.85
unpackEnterMethod · 0.85
unpackStdStringMethod · 0.85
unpackStdStringRawMethod · 0.85
executeMethod · 0.85
loadHeaderFunction · 0.85
readEnterMethod · 0.85
addPlayerFunction · 0.85
saveRobotInfoFunction · 0.85
handleRejectMessageFunction · 0.85
handleCacheURLFunction · 0.85
handleWantHashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected