Example #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)
Example #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)