martin-1120 commented on issue #3651:
URL: https://github.com/apache/fory/issues/3651#issuecomment-4395730602
总之就是我需要知道一个byte数组,是否是经过forxy序列化, AI给出了个方法,但是我不知道是否靠谱
public static boolean isFurySerialized(byte[] data) {
if (data == null || data.length < 2) {
return false;
}
// Fury的魔数 (Magic Number) 是小端序的 0xD462,实际表现为字节数组 {0x62, 0xD4}
return (data[0] == 0x62 && data[1] == (byte) 0xD4);
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]