code: public MemorySegment[] getNextBuffers(int bufferSize) {
  		MemorySegment[] memorySegments = new MemorySegment[bufferSize];
  		for (int i = 0; i < bufferSize; i++) {
  			MemorySegment nextBuffer = getNextBuffer();
  			if (nextBuffer == null) {
  				throw new RuntimeException("No enough buffers!");
  			}
  			memorySegments[i] = nextBuffer;
  		}
  		return memorySegments;
  	}
docs: Bulk memory acquisition.
  NOTE: Failure to get memory will throw an exception.