public class QGoosePacket extends QPacket {
public static QProtocolInt31Field fetchAppId(byte[] data, int headerOffset) {
int fieldOffset = headerOffset + 0;
int fieldLen = 2;
int value = (int) BytesUtil.toSigned(data, fieldOffset, fieldLen);
QProtocolInt31Field field = new QProtocolInt31Field();
field.init(fieldOffset, fieldLen, "appId", "应用标识");
field.setValue(value);
return field;
}