Exemple #1
0
 def _decode(self, obj, context):
     if self.swapped:
         obj = swap_bytes(obj, bytesize = self.bytesize)
     return bin_to_int(obj, signed = self.signed)
Exemple #2
0
 def _decode(self, obj, context):
     if self.swapped:
         obj = swap_bytes(obj, bytesize=self.bytesize)
     return bin_to_int(obj, signed=self.signed)