public void ingestStream(InputStream stream) throws IOException {
		while (byteCount < maxCount) {
			int pos = readPage(stream, currentBuffer);
			if (pos < BUFFER_SIZE) {
				currentPos += pos;
				break;
			}
			// Set up next buffer
			currentBuffer.next = new ArrayIter();
			currentBuffer = currentBuffer.next;
			currentBuffer.array = new byte[BUFFER_SIZE];
			currentPos = 0;
		}
	}
Read the stream until the end of stream is encountered or until maxCount bytes is reached.
Store the bytes on the heap in BUFFER_SIZE chunks.
@param stream is the input
@throws IOException for errors reading from the stream
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/LinkedByteBuffer.java