(self, b)
Set the byte order, valid values are "big", "little", "swap", "native", "<", ">", "@", "="
Set the byte order, valid values are "big", "little", "swap", "native", "<", ">", "
Set the byte order valid values are big little swap native < >
def set_byte_order(self, b):
		'''Set the byte order, valid values are "big", "little", "swap", "native", "<", ">", "@", "="'''
		if b == 'big':
			self.byte_order = '>'
		elif b == 'little':
			self.byte_order = '<'
		elif b == 'swap':
			# swap what ever the current byte order is
			self.byte_order = swap_unpack_char()
		elif b == 'native':
			self.byte_order = '='
		elif b == '<' or b == '>' or b == '@' or b == '=':
			self.byte_order = b
		else:
			print("error: invalid byte order specified: '%s'" % b)
def set_byte_order ( self , b ) : if b == 'big' : self . byte_order = '>' elif b == 'little' : self . byte_order = '<' elif b == 'swap' : # swap what ever the current byte order is self . byte_order = swap_unpack_char ( ) elif b == 'native' : self . byte_order = '=' elif b == '<' or b == '>' or b == '@' or b == '=' : self . byte_order = b else : print ( "error: invalid byte order specified: '%s'" % b )