public void setInitialized(long offset, int size, boolean initialized) {
		int cursize;
		int count;
		long pagemask = (pagesize - 1);
		long offalign;
		int skip;
		int bufOffset = 0;

		count = 0;
		while (count < size) {
			cursize = pagesize;
			offalign = offset & ~pagemask;
			skip = 0;
			if (offalign != offset) {
				skip = (int) (offset - offalign);
				cursize -= skip;
			}
			if (size - count < cursize)
				cursize = size - count;
			setPageInitialized(offalign, initialized, skip, cursize, bufOffset);
			count += cursize;
			offset += cursize;
			bufOffset += cursize;
		}
	}
This method allows ranges of bytes to marked as initialized or not.
There is no restriction on the offset to write to or the number of bytes to be written,
except that the range must be contained in the address space.

@param offset is the start of the byte range to be written
@param size is the number of bytes to write
@param initialized indicates if the range should be marked as initialized or not
Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/memstate/MemoryBank.java