public boolean addMsg(String attr, byte[] data, int offset, int len) {
        return addMsg(attr, ByteBuffer.wrap(data, offset, len));
    }
return false means current msg is big enough, no other data should be
added again, but attention: the input data has already been added, and if
you add another data after return false it can also be added
successfully.

@param attr   attribute info
@param data   binary data
@param offset data start offset
@param len    data length
@return boolean
inlong-common/src/main/java/org/apache/inlong/common/msg/InLongMsg.java