public boolean containsOffset(long offset, int sizeofElement) {
		return array <= offset && offset < getElementOffset(sizeofElement, cap);
	}
Returns true if this slice contains the specified offset.

@param offset memory offset in question
@param sizeofElement size of elements in this slice
@return true if this slice contains the specified offset
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/rtti/GoSlice.java