How can I map bytes to a matrix of structures?
bearophile
bearophileHUGS at lycos.com
Fri Sep 9 10:10:41 PDT 2011
Timon Gehr:
> A simple reinterpret cast should do:
> auto b=*(cast(DATA[2][2]*)a.ptr);
I think this is enough:
auto b = cast(Data[2][2])a;
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list