public synchronized int contiguousAvailableAfter(long loc) {
		ULongSpan span = defined.spanContaining(loc);
		if (span == null) {
			return 0;
		}
		long diff = span.max() - loc + 1;
		return MathUtilities.unsignedMin(Integer.MAX_VALUE, diff);
	}
Check how many contiguous bytes are available starting at the given address

@param loc the starting offset
@return the number of contiguous defined bytes following
Ghidra/Framework/Emulation/src/main/java/ghidra/generic/util/datastruct/SemisparseByteArray.java