Example #1
0
 def __init__(self, ustr):
     super().__init__(ustr)
     try:
         HexConstant(ustr)
         self.__value = int(ustr, 16)
     except TypeError:
         Base64Constant(ustr)
         binstr = base64.b64decode(bytes(ustr[2:], "utf8"))
         self.__value = ntoi(binstr)
Example #2
0
 def InitiatorTaskTag(self):
     return ntoi(self.__data[16:20])
Example #3
0
 def DataSegmentLength(self):
     return ntoi(self.__data[5:8])
Example #4
0
 def TotalAHSLength(self):
     return ntoi(self.__data[4])  # in units of 4 byte words
Example #5
0
 def Immediate(self):
     if ntoi(self.__data[0]) & self.__IMMEDIATE_MASK:
         return True
     else:
         return False
Example #6
0
 def Opcode(self):
     return ntoi(self.__data[0]) & self.__OPCODE_MASK
Example #7
0
 def DataSegmentLength(self):
     return ntoi(self.__data[5:8])
Example #8
0
 def InitiatorTaskTag(self):
     return ntoi(self.__data[16:20])
Example #9
0
 def TotalAHSLength(self):
     return ntoi(self.__data[4]) # in units of 4 byte words
Example #10
0
 def Immediate(self):
     if ntoi(self.__data[0]) & self.__IMMEDIATE_MASK :
         return True
     else:
         return False
Example #11
0
 def Opcode(self):
     return ntoi(self.__data[0]) & self.__OPCODE_MASK
Example #12
0
 def __init__(self, addr, tpgt):
     self.__addr = str(addr)
     self.__tpgt = ntoi(tpgt)
Example #13
0
 def __init__(self, addr, tpgt):
     self.__addr = str(addr)
     self.__tpgt = ntoi(tpgt)