| 24 | // if only there was a standard library function for this |
| 25 | template <size_t Len> |
| 26 | inline size_t StringCopy(char (&dest)[Len], const char* src) |
| 27 | { |
| 28 | if (!src || !Len) { |
| 29 | return 0; |
| 30 | } |
| 31 | size_t copied; |
| 32 | char* out = dest; |
| 33 | for (copied = 1; *src && copied < Len; ++copied) { |
| 34 | *out++ = *src++; |
| 35 | } |
| 36 | *out = 0; |
| 37 | return copied - 1; |
| 38 | } |
| 39 | |
| 40 | size_t JsonWriteHandshakeObj(char* dest, size_t maxLen, int version, const char* applicationId); |
| 41 |
no outgoing calls
no test coverage detected