def _pad_bytes_new(name, length):
if isinstance(name, str):<EOL><INDENT>name = bytes(name, '<STR_LIT:utf-8>')<EOL><DEDENT>return name + b'<STR_LIT:\x00>' * (length - len(name))<EOL>
Takes a bytes instance and pads it with null bytes until it's length chars.