def create ( cls, p_opcode, p_args ): #---------------------------------------------------------------------- l_format = opcodes.result_format(p_opcode) if l_format == None: return None l_data = data.pack(l_format, p_args) if l_data == None: return None return cls(p_opcode, l_data)
def get_format ( self ): #---------------------------------------------------------------------- return opcodes.result_format(self.get_opcode())