| 59 | } |
| 60 | |
| 61 | void FormatUuid(CUuid Uuid, char *pBuffer, unsigned BufferLength) |
| 62 | { |
| 63 | unsigned char *p = Uuid.m_aData; |
| 64 | str_format(pBuffer, BufferLength, |
| 65 | "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x", |
| 66 | p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], |
| 67 | p[8], p[9], p[10], p[11], p[12], p[13], p[14], p[15]); |
| 68 | } |
| 69 | |
| 70 | int ParseUuid(CUuid *pUuid, const char *pBuffer) |
| 71 | { |