(self, dt)
return {
            idaapi.dt_byte:  idaapi.OOFW_8,
            idaapi.dt_word:  idaapi.OOFW_16,
            idaapi.dt_dword: idaapi.OOFW_32,
            idaapi.dt_qword: idaapi.OOFW_64,
        }[dt]
returns OOFW_xxx flag given a dt_xxx
returns OOFW_xxx flag given a dt_xxx
returns OOFW_xxx flag given a dt_xxx
def dt_to_width(self, dt):
        '''
        returns OOFW_xxx flag given a dt_xxx
        '''
        return {
            idaapi.dt_byte:  idaapi.OOFW_8,
            idaapi.dt_word:  idaapi.OOFW_16,
            idaapi.dt_dword: idaapi.OOFW_32,
            idaapi.dt_qword: idaapi.OOFW_64,
        }[dt]
def dt_to_width ( self , dt ) : return { idaapi . dt_byte : idaapi . OOFW_8 , idaapi . dt_word : idaapi . OOFW_16 , idaapi . dt_dword : idaapi . OOFW_32 , idaapi . dt_qword : idaapi . OOFW_64 , } [ dt ]