On Tue, Apr 21, 2020 at 6:08 PM Rakesh K R <rakeshkr1...@gmail.com> wrote:

> In C, we used to typecast this array of uint8_t to predefined structure.

Go has no casts. Regardless, one can do something similar using
unsafe. But then - how it's planned to deal with the situation when
the machine endianess does not match the order of the bytes in the
packet?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAA40n-UA804QVJUDL47OjkdaqR50nXouOM6X5kAmAF_N8FgnRQ%40mail.gmail.com.

Reply via email to