Forgive me if this has been covered elsewhere but I did not find the answer on this forum.
I need to send/recieve data over the ethernet(Socket) to a number of devices. Most of those are running old C code so the data needs to be sent as a byte array. I cannot find a way to convert my data structures to byte[] arrays in order to read and write them. On the desktop environment, the keywords Unsafe and fixed allow me to get pointers and do the data conversion but when i tried this on the netduino the code builds without a problem but immediately and consistently will brick the device.
I tried byte[] myByteArray = Reflection.Serialize(foof, typeof(float));
but got an exception that this is not implemented. MemoryStream is also not implemented.
I had high hopes for the nerduino but if I cannot do this data conversion it is useless. The ability to send data between different devices seems like a fundamental requirement. Does anyone out there know of a way to do the data conversion?