我有一个 UDP 数据包进来,其中包含 Sint64 形式的 UTC。如何将其转换为 UTC 时间?
Sint64 = 8 bytes 我在下面分配了 8 个字节数组。这是进入“receivedData”字节数组的唯一内容
DatagramSocket serverSocket = new DatagramSocket(18000);
byte[] receiveData = new byte[8];
while (true)
{
DatagramPacket receivePacket = new DatagramPacket(receiveData, receiveData.length);
serverSocket.receive(receivePacket);
//not sure how I should be reading the raw binary data back into UTC object
}