Convert binary to UUID from LDAP

Alexander Zhirov azhirov1991 at gmail.com
Mon Mar 27 17:56:22 UTC 2023


I get `objectGUID` data from LDAP as binary data. I need to 
convert `ubyte[]` data into a readable `UUID`. As far as I 
understand, it is possible to do this via `toHexString()`, but I 
have reached a dead end. Is there a way to make it more elegant, 
like [this 
technique](https://dlang.org/phobos/std_uuid.html#.UUID)?

```
ubyte[] => [159, 199, 22, 163, 13, 74, 145, 73, 158, 112, 7, 192, 
12, 193, 7, 194]
hex     => 9FC716A30D4A91499E7007C00CC107C2
```


More information about the Digitalmars-d-learn mailing list