Convert binary to UUID from LDAP

Steven Schveighoffer schveiguy at gmail.com
Tue Mar 28 13:37:18 UTC 2023


On 3/28/23 6:36 AM, WebFreak001 wrote:

> the formatting messed up here. Try this code:
> 
> ```d
> auto uuid = UUID(
>      (cast(const(ubyte)[]) value.attributes["objectGUID"][0])
>      [0 .. 16]
> );
> ```

Nice, I didn't think this would work actually!

-Steve


More information about the Digitalmars-d-learn mailing list