コード例 #1
0
ファイル: core.py プロジェクト: johnjohnbear/Rammbock
    def bin_to_hex(self, bin_value):
        """Converts given binary to hex string.

        Examples:
        | ${hex} = | Bin to hex | Hello! |
        | ${hex} = | Bin to hex | ${binary} |
        """
        return to_0xhex(bin_value)
コード例 #2
0
ファイル: core.py プロジェクト: mengzr/Rammbock
    def bin_to_hex(self, bin_value):
        """Converts given binary to hex string.

        Examples:
        | ${hex} = | Bin to hex | Hello! |
        | ${hex} = | Bin to hex | ${binary} |
        """
        return to_0xhex(bin_value)
コード例 #3
0
ファイル: message.py プロジェクト: caseyding/Rammbock
 def __hex__(self):
     return to_0xhex(self._value)
コード例 #4
0
ファイル: message.py プロジェクト: caseyding/Rammbock
 def __int__(self):
     return int(to_0xhex(self._value), 16)
コード例 #5
0
 def __hex__(self):
     return to_0xhex(self._value)
コード例 #6
0
 def __int__(self):
     return int(to_0xhex(self._value), 16)