'Write a cyclic pattern to memory
Set "pattern" option for basic/extended pattern type
Usage:
MYNAME address size'

def pattern_patch(self, *arg):

    (address, size) = normalize_argv(arg, 2)
    if (size is None):
        self._missing_argument()
    pattern = cyclic_pattern(size)
    num_bytes_written = peda.writemem(address, pattern)
    if num_bytes_written:
        msg(('Written    %d    chars    of    cyclic    pattern    to    0x%x' % (size, address)))
    else:
        msg('Failed    to    write    to    memory')
    return
