do you have an precise descriptiom about the packet?
Using UDP-Packet decoding for a PS/4 Game i used RandomAccessfile to parse the Packets
Example code with no relation to your packet.
The Indexes used in the code are Values from the F1 game packets...
You need to use the right index for your packets.
See packetdescription to find out
If you know the right index and you know there must be a value (int, float, long) you can pase the packet into the right values.
Sub UDP_PacketArrived (Packet As UDPPacket)
Dim raf As RandomAccessFile
raf.Initialize3(Packet.Data, True) 'change the endianess if the version number is incorrect
log(ShortToUnsigned(raf.ReadShort(0)))
dim time as Long = raf.ReadLong(4) ' example to read a LONG value from index 4
log(raf.ReadFloat(12))
log(raf.ReadInt(16))
end sub
Sub ShortToUnsigned(s As Short) As Int
Return Bit.And(0xFFFF, s)
End Sub