public static QProtocolBitField fetchCfi(byte[] data, int headerOffset) {
int fieldOffset = headerOffset + 0;
int fieldLen = 1;
int value = BytesUtil.toInt(data, fieldOffset, fieldLen, 3, 1);
QProtocolBitField field = new QProtocolBitField() {
public String getValueAsString() {
return getValue() == 0 ? "规范格式" : "非规范格式";
}
};
field.init(fieldOffset, fieldLen, "cfi", "格式");
field.setValue(value);
return field;
}