def decode(self, buffer): result = UChar.decode(self, buffer) BinaryData.set_endianness({1: 'little', 2: 'big'}[self.value]) return result
def decode(self, buffer): result = UChar.decode(self, buffer) BinaryData.set_address_size({1: 32, 2: 64}[self.value]) return result
def decode(self, buffer): result = UChar.decode(self, buffer) BinaryData.set_endianness({1: "little", 2: "big"}[self.value]) return result