private int getBinMsgtype(ByteBuffer data) {
        return data.get(BIN_MSG_MSGTYPE_OFFSET);
    }
add msg
@param attr
@param data
@return
inlong-common/src/main/java/org/apache/inlong/common/msg/InLongMsg.java