01-07-2013 10:39 PM
Hi,
How to send the unsigned 32 bit array through UDP.
How to convert the unsigned 32 bit array to byte array.
Solved! Go to Solution.
01-07-2013 10:50 PM - edited 01-07-2013 10:50 PM
Try Flatten to String.
01-07-2013 10:51 PM - edited 01-07-2013 10:51 PM
You can typecast it to a string and then typecast it back to a U32 array on the other end.
You can also use flatten tro srring/unflatten from string.
Have a look at the example finder for some examples.
01-08-2013 12:35 AM - edited 01-08-2013 12:35 AM
one more doubt
how can i copy the unsigned 32 bit data array to unsigned 8 bit data array.
how can i copy the unsigned 8 bit data array to unsigned 32 bit data array.
if above mentioned two are possible means i can convert byte array to string and send the data.
can you please help on this.
01-08-2013 12:37 AM - edited 01-08-2013 12:38 AM
The advice you got above converts directly to/from a string. Have you tried?
(No need for the middleman (byte array to string))
01-08-2013 12:47 AM
Thanks i got it.
01-08-2013 12:52 AM - edited 01-08-2013 12:54 AM
Hi,
i am converting and storing 13 byte string to unsigned 32 bit array but it taking space of (13 * 4 bytes)
why?
i should take only max 16 bytes (4*4) size right
01-08-2013 12:55 AM
Show us your code. Make sure to include some default data.
01-08-2013 12:59 AM
this is the code.
01-08-2013 01:03 AM
I don't see any typecast function.