(self, start_addr, repeating_byte, threshold=2)
Scan from a given address and determine the occurrences of a given byte.

        :param int start_addr:      The address in memory to start scanning.
        :param int repeating_byte:  The repeating byte to scan for.
        :param int threshold:  The minimum occurrences.
        :return:                    The occurrences of a given byte.
        :rtype:                     int
Scan from a given address and determine the occurrences of a given byte.
Scan from a given address and determine the occurrences of a given byte .
def _scan_for_repeating_bytes(self, start_addr, repeating_byte, threshold=2):
        """
        Scan from a given address and determine the occurrences of a given byte.

        :param int start_addr:      The address in memory to start scanning.
        :param int repeating_byte:  The repeating byte to scan for.
        :param int threshold:  The minimum occurrences.
        :return:                    The occurrences of a given byte.
        :rtype:                     int
        """

        addr = start_addr

        repeating_length = 0

        while self._inside_regions(addr):
            val = self._load_a_byte_as_int(addr)
            if val is None:
                break
            if val == repeating_byte:
                repeating_length += 1
            else:
                break
            addr += 1

        if repeating_length >= threshold:
            return repeating_length
        else:
            return 0
def _scan_for_repeating_bytes ( self , start_addr , repeating_byte , threshold = 2 ) : addr = start_addr repeating_length = 0 while self . _inside_regions ( addr ) : val = self . _load_a_byte_as_int ( addr ) if val is None : break if val == repeating_byte : repeating_length += 1 else : break addr += 1 if repeating_length >= threshold : return repeating_length else : return 0