| 20 | */ |
| 21 | |
| 22 | void toHex(const void *buffer,uint32_t bufferSize,char *output) { |
| 23 | |
| 24 | const char *ptr; |
| 25 | static const char *hexSet="0123456789abcdef"; |
| 26 | |
| 27 | ptr=reinterpret_cast<const char *>(buffer); |
| 28 | while(bufferSize--) { |
| 29 | |
| 30 | *output++=hexSet[(*ptr & 0xf0) >> 4]; |
| 31 | *output++=hexSet[*ptr & 0xf]; |
| 32 | ptr++; |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | |
| 37 | /* |
no outgoing calls
no test coverage detected