converting a byte array to a struct array?

Trass3r mrmocool at gmx.de
Tue Dec 29 05:58:15 PST 2009


Just remembered the old casting hack:

RGB[] PALETTE = (cast(RGB*) cast(ubyte[]) [...])[0..256];

It works but is there perhaps another nicer possibility?


More information about the Digitalmars-d-learn mailing list