In R you can use readBinfor join or for raw vector
answer=as.raw(c(
0x80,0x8e,0x61,0x53,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x80,0x8e,0x61,0x53,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00))
readBin(answer[1:16],"integer", size=8,n=2, endian="little")
readBin(answer[17:32],"integer", size=8, n=2, endian="little")
If your answer is in a connection object, you donβt have to worry about indexing to extract the correct part of the raw vector. You can just read from the binary connection and it will track the indexing.