'Find sequences in binary data.
:param angr.analyses.CFG cfg: The control flow graph.
:param pyvex.IRSB irsb: The IRSB object.
:param int irsb_addr: Address of the block.
:param int stmt_idx: Statement ID.
:param int data_addr: Address of the data in memory.
:param int max_size: Maximum size possible.
:return: A 2-tuple of data type and size.
:rtype: tuple'

def _sequence_handler(self, cfg, irsb, irsb_addr, stmt_idx, data_addr, max_size):

    if (not self._is_sequence(cfg, data_addr, 5)):
        return (None, None)
    sequence_max_size = min(256, max_size)
    for i in xrange(5, min(256, max_size)):
        if (not self._is_sequence(cfg, data_addr, i)):
            return ('sequence', (i - 1))
    return ('sequence', sequence_max_size)
