public int getLength() {
        return buffer.getLength();
    }
Returns the length of the valid data currently in the buffer.
inlong-common/src/main/java/org/apache/inlong/common/msg/DataOutputBuffer.java