'Display hexified of data in memory
Usage:
MYNAME address (display 16 bytes from address)
MYNAME address count
MYNAME address /count (display "count" lines, 16-bytes each)'

def hexprint(self, *arg):

    (address, count) = normalize_argv(arg, 2)
    if (address is None):
        self._missing_argument()
    if (count is None):
        count = 16
    if ((not to_int(count)) and count.startswith('/')):
        count = to_int(count[1:])
        count = ((count * 16) if count else None)
    bytes_ = peda.dumpmem(address, (address + count))
    if (bytes_ is None):
        warning_msg('cannot    retrieve    memory    content')
    else:
        hexstr = to_hexstr(bytes_)
        linelen = 16
        i = 0
        text = ''
        while hexstr:
            text += ('%s    :    "%s"\n' % (blue(to_address((address + (i * linelen)))), hexstr[:(linelen * 4)]))
            hexstr = hexstr[(linelen * 4):]
            i += 1
        pager(text)
    return
