public byte[] getRawData(String attr) {
        checkMode(false);
        makeSureParsed();
        ByteBuffer buffer = getRawDataBuffer(attr);
        byte[] data = new byte[buffer.remaining()];
        System.arraycopy(buffer.array(), buffer.position(), data, 0,
                buffer.remaining());
        return data;
    }
add msg
@param attr
@param data
@return
inlong-common/src/main/java/org/apache/inlong/common/msg/InLongMsg.java