public AddressSpace createNewOffsetSpace(String name, int bitSize) {
		AddressSpace space = null;
		try {
			if (bitSize > 64) {
				bitSize = 64;
			}
			if (bitSize < 8) {
				bitSize = 8;
			}
			space = new OffsetAddressSpace(name, bitSize,
				AddressSpace.TYPE_SYMBOL, getNextUniqueID());
			super.addAddressSpace(space);
		}
		catch (IllegalArgumentException e) {
			return null; // out of address spaces
		}
		catch (DuplicateNameException e) {
			space = getAddressSpace(name);
		}
		return space;
	}
Create a new address space

@param name of address space
@return new address space, or null if no spaces left to allocate
Ghidra/Features/Base/src/main/java/ghidra/program/util/VarnodeContext.java