private ByteBuffer getBuffer() throws IOException {
        while (current < buffers.size()) {
            ByteBuffer buffer = buffers.get(current);
            if (buffer.hasRemaining()) {
                return buffer;
            }
            current++;
        }
        throw new EOFException();
    }
Returns the next non-empty buffer.

@throws java.io.EOFException if EOF is reached before reading all the bytes.
inlong-tubemq/tubemq-core/src/main/java/org/apache/inlong/tubemq/corerpc/netty/ByteBufferInputStream.java