On Mon, Jun 05, 2017 at 01:14:31AM +0000, Mike B Johnson via 
Digitalmars-d-learn wrote:
[...]
> Guid is a struct and I am trying to get the "bytes" of the struct" to
> get the guid bytes. It is quicker than accessing all the elements one
> at a time.

        union U {
                typeof(guid) guid;
                ubyte[guid.sizeof] bytes;
        }
        U u;
        u.guid = guid;
        // ... do something with u.bytes.


T

-- 
Why are you blatanly misspelling "blatant"? -- Branden Robinson

Reply via email to