core/x86/instr.c
/* Calculates the size, in bytes, of the memory read or write of instr
 * If instr does not reference memory, or is invalid, returns 0
 */
Calculates the size, in bytes, of the memory read or write of instr
If instr does not reference memory, or is invalid, returns 0
Calculates the size in bytes of the memory read or write of instr If instr does not reference memory or is invalid returns 0
uint
instr_memory_reference_size(instr_t *instr)
{
    int i;
    if (!instr_valid(instr))
        return 0;
    for (i=0; i<instr_num_dsts(instr); i++) {
        if (opnd_is_memory_reference(instr_get_dst(instr, i))) {
            return opnd_size_in_bytes(opnd_get_size(instr_get_dst(instr, i)));
        }
    }
    for (i=0; i<instr_num_srcs(instr); i++) {
        if (opnd_is_memory_reference(instr_get_src(instr, i))) {
            return opnd_size_in_bytes(opnd_get_size(instr_get_src(instr, i)));
        }
    }
    return 0;
}
uint instr_memory_reference_size ( instr_t * instr ) { int i ; if ( ! instr_valid ( instr ) ) return 0 ; for ( i = 0 ; i < instr_num_dsts ( instr ) ; i ++ ) { if ( opnd_is_memory_reference ( instr_get_dst ( instr , i ) ) ) { return opnd_size_in_bytes ( opnd_get_size ( instr_get_dst ( instr , i ) ) ) ; } } for ( i = 0 ; i < instr_num_srcs ( instr ) ; i ++ ) { if ( opnd_is_memory_reference ( instr_get_src ( instr , i ) ) ) { return opnd_size_in_bytes ( opnd_get_size ( instr_get_src ( instr , i ) ) ) ; } } return 0 ; }
Calculates the size, in bytes, of the memory read or write of instr
 If instr does not reference memory, or is invalid, returns 0
Calculates the size in bytes of the memory read or write of instr If instr does not reference memory or is invalid returns 0