def dump(self, src, length=<NUM_LIT:16>, start=<NUM_LIT:0>, preffix="<STR_LIT>"):
FILTER ="<STR_LIT>".join([(len(repr(chr(x)))==<NUM_LIT:3>) and chr(x) or '<STR_LIT:.>'for x in range(<NUM_LIT>)])<EOL>result = list()<EOL>for i in range(<NUM_LIT:0>, len(src), length):<EOL><INDENT>s           = src[i : i + length]<EOL>hexa        = "<STR_LIT:U+0020>".join(["<STR_LIT>" % ord(x) for x in s])<EOL>printable   = s.translate(FILTER)<EOL>result.append("<STR_LIT>" %(preffix, start + i, length * <NUM_LIT:3>, hexa, printable))<EOL><DEDENT>return '<STR_LIT>'.join(result)<EOL>
Dump the specified buffer in hex + ASCII format.