def _pad_bytes(name, length):
 return (name + ('\x00' * (length - len(name))))

def _pad_bytes ( name , length ) : return ( name + ( '\x00' * ( length - len ( name ) ) ) )
takes a char string and pads it with null bytes until its length chars .