private static long getIndexOfByteValue(BinaryReader reader, long startIndex, int maxLen,
			byte byteValueToFind) throws IOException {
		long maxIndex = startIndex + maxLen;
		long currentIndex = startIndex;
		while (currentIndex < maxIndex) {
			byte b = reader.readByte(currentIndex);
			if (b == byteValueToFind) {
				return currentIndex;
			}
			currentIndex++;
		}
		return currentIndex;
	}
Only used for invalid string conditions. 
@param string the invalid string.
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/android/dex/format/StringDataItem.java