public Varnode[] splitToBytes(Varnode v, int len) {
		if (!isConstant(v)) {
			return null;
		}
		
		Varnode split[] = new Varnode[len];
		long value = v.getOffset();
		if (isBE) {
			for (int i = 0; i < len; i++) {
				long subv = value >> (i * 8);
				split[len - i - 1] = createConstantVarnode(subv, 1);
			}
		}
		else {
			for (int i = 0; i < len; i++) {
				long subv = value >> (i * 8);
				split[i] = createConstantVarnode(subv, 1);
			}
		}
		return split;
	}
Check if the symbol at the address is read_only.

@param addr - address of the symbol

@return true if the block is read_only, and there are no write references.
Ghidra/Features/Base/src/main/java/ghidra/program/util/VarnodeContext.java