@Override
    public void close() throws IOException {
        if (closed) {
            return;
        }
        // buffer = null;
        super.close();
    }
Update inner buffer as needed.

@return remaining bytes in buffer
@throws IOException when failed to update buffer
clickhouse-data/src/main/java/com/clickhouse/data/stream/AbstractByteBufferInputStream.java