public void setBodyData(int msgCnt, byte[] bodyBytes) {
        this.msgCnt = msgCnt;
        this.bodyData = bodyBytes;
        if (this.bodyData != null) {
            this.bodyDataLength = this.bodyData.length;
        }
    }
Encode Object class

Used to encapsulate the reported event information to be sent
inlong-sdk/dataproxy-sdk/src/main/java/org/apache/inlong/sdk/dataproxy/network/tcp/codec/EncodeObject.java