(self, unsigned=False)
Return value as Python int.
Return value as Python int.
Return value as Python int .
def to_int(self, unsigned=False):
        """Return value as Python int."""
        if unsigned:
            return struct.unpack('<H', self._buffer)[0]
        else:
            return struct.unpack('<h', self._buffer)[0]
def to_int ( self , unsigned = False ) : if unsigned : return struct . unpack ( '<H' , self . _buffer ) [ 0 ] else : return struct . unpack ( '<h' , self . _buffer ) [ 0 ]