Example #1
0
 def _format(data):
     for offset, hexa, s in hexdump(data):
         yield [
             ("offset", offset + " "),
             ("text", hexa + "   "),
             ("text", s)
         ]
Example #2
0
 def _format(data):
     for offset, hexa, s in hexdump(data):
         yield [
             ("offset", offset + " "),
             ("text", hexa + "   "),
             ("text", s)
         ]
Example #3
0
def test_hexdump():
    assert utils.hexdump("one\0" * 10)
Example #4
0
def test_hexdump():
    assert utils.hexdump("one\0" * 10)
Example #5
0
def test_hexdump():
    assert list(utils.hexdump(b"one\0" * 10))
Example #6
0
def test_hexdump():
    assert list(utils.hexdump(b"one\0" * 10))