I’m developing an app that receives a Datagram package with a byte array and I need to get the info on it and turn it to an object.
I’ve read the documentation and it says the position on the byte array for each information is stored, but I can’t seem to parse it correctly to an object. Has anyone done some similar work lately?
I recommend you look into ByteBuffer. It allows you to easily wrap a byte array and extract whatever you need: