def smethod_2(string_0): str0 = "" if isinstance(string_0, QString): str0 = String.QString2Str(string_0) else: str0 = string_0 charArray = String.CharArray2Str(str0) flagArray = CRC.CRC32POLY for i in range(len(string_0)): CRC.smethod_6(flagArray, CRC.smethod_3(charArray[i])) return CRC.smethod_5(flagArray)
def get_AirportId(self): num = 1 chrArray = ['', '', '', ''] i = 3 while i >= 0: if (ord(chr(self.bytes[num])) >= 32): chrArray[i] = chr(ord(chr(self.bytes[num]))) else: chrArray[i] = chr(ord(chr(self.bytes[num])) | 64) num += 1 i -= 1 return String.CharArray2Str(chrArray)
def get_ReferencePathIdentifier(self): num = 8 chrArray = ['', '', '', ''] i = 3 while i >= 0: if (ord(chr(self.bytes[num])) >= 32): chrArray[i] = chr(ord(chr(self.bytes[num]))) else: chrArray[i] = chr(ord(chr(self.bytes[num])) | 64) num += 1 i -= 1 return String.CharArray2Str(chrArray)
def get_RouteIndicator(self): num = Type.ByteFunc.d2b((ord(chr(self.bytes[6])) & 248) >> 3) if (ord(num) == 0): return " " chrArray = [chr(ord(num) | 64)] return String.CharArray2Str(chrArray)