protected static void generateMemorySleigh(List<String> result, Language language,
			AddressSpace space, SemisparseByteArray array) {
		byte[] data = new byte[8];
		for (ULongSpan span : array.getInitialized(0, -1).spans()) {
			Address start = space.getAddress(span.min());
			Address end = space.getAddress(span.max());
			for (AddressRange chunk : new AddressRangeChunker(start, end, data.length)) {
				Address min = chunk.getMinAddress();
				int length = (int) chunk.getLength();
				array.getData(min.getOffset(), data, 0, length);
				result.add(generateSleighLine(language, min, data, length));
			}
		}
	}
Generate multiple lines of Sleigh, all to set a single variable

@param language the target language
@param address the (start) address of the variable
@param data the bytes to write to the variable
@return the lines of Sleigh code
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/model/time/schedule/PatchStep.java