In a nutshell how do I cast an int into a byte array?
I tried this: byte[] bytes = cast(byte[])x;
Error: cannot cast expression x of type int to byte[]
What should I be doing instead?
Samson Smith via Digitalmars-d-learn Sat, 16 Jan 2016 06:36:06 -0800
In a nutshell how do I cast an int into a byte array?
I tried this: byte[] bytes = cast(byte[])x;
Error: cannot cast expression x of type int to byte[]
What should I be doing instead?