예제 #1
0
 def endianness(self, endianness):
     if endianness is None:
         raise TypeError("Endianness cannot be None.")
     if endianness not in AbstractType.supportedEndianness():
         raise ValueError(
             "This endianness is not supported, please refer to the list of supported type in AbstractType.supportedEndianness()"
         )
     self.__endianness = endianness
예제 #2
0
 def endianness(self, endianness):
     if endianness is None:
         raise TypeError("Endianness cannot be None.")
     if endianness not in AbstractType.supportedEndianness():
         raise ValueError(
             "This endianness is not supported, please refer to the list of supported type in AbstractType.supportedEndianness()"
         )
     self.__endianness = endianness
예제 #3
0
파일: CRC32.py 프로젝트: warsang/netzob
    def endianness(self, endianness):
        if endianness is None:
            raise TypeError("Endianness cannot be None")
        if not endianness in AbstractType.supportedEndianness():
            raise TypeError(
                "Specified Endianness is not supported, please refer to the list in AbstractType.supportedEndianness()."
            )

        self.__endianness = endianness