| 490 | |
| 491 | |
| 492 | void* 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 | |
| 509 | void* nboUnpackStdString(void* b, std::string& str) { |
no outgoing calls
no test coverage detected