diff --git a/src/pyzshell/pyzshell/symbol.py b/src/pyzshell/pyzshell/symbol.py index cbe10915..3caec753 100644 --- a/src/pyzshell/pyzshell/symbol.py +++ b/src/pyzshell/pyzshell/symbol.py @@ -1,3 +1,4 @@ +import ctypes import os import struct import time @@ -110,6 +111,21 @@ def tell(self): """ Construct compliance. """ return self + self._offset + @property + def c_int64(self): + """ cast to c_int64 """ + return ctypes.c_int64(self).value + + @property + def c_int32(self): + """ cast to c_int32 """ + return ctypes.c_int32(self).value + + @property + def c_int16(self): + """ cast to c_int16 """ + return ctypes.c_int16(self).value + def __add__(self, other): try: return self._client.symbol(int(self) + other)