core/x86/instr.c
/* Calculates the size, in bytes, of the memory read or write of
 * the instr at pc.
 * Returns the pc of the following instr.
 * If the instr at pc does not reference memory, or is invalid, 
 * returns NULL.
 */
Calculates the size, in bytes, of the memory read or write of
the instr at pc.
Returns the pc of the following instr.
If the instr at pc does not reference memory, or is invalid,
returns NULL.
Calculates the size in bytes of the memory read or write of the instr at pc . Returns the pc of the following instr . If the instr at pc does not reference memory or is invalid returns NULL .
app_pc
decode_memory_reference_size(dcontext_t *dcontext, app_pc pc, uint *size_in_bytes)
{
    app_pc next_pc;
    instr_t instr;
    instr_init(dcontext, &instr);
    next_pc = decode(dcontext, pc, &instr);
    if (!instr_valid(&instr))
        return NULL;
    CLIENT_ASSERT(size_in_bytes != NULL, "decode_memory_reference_size: passed NULL");
    *size_in_bytes = instr_memory_reference_size(&instr);
    instr_free(dcontext, &instr);
    return next_pc;
}
app_pc decode_memory_reference_size ( dcontext_t * dcontext , app_pc pc , uint * size_in_bytes ) { app_pc next_pc ; instr_t instr ; instr_init ( dcontext , & instr ) ; next_pc = decode ( dcontext , pc , & instr ) ; if ( ! instr_valid ( & instr ) ) return NULL ; CLIENT_ASSERT ( size_in_bytes != NULL , " " ) ; * size_in_bytes = instr_memory_reference_size ( & instr ) ; instr_free ( dcontext , & instr ) ; return next_pc ; }
Calculates the size, in bytes, of the memory read or write of
 the instr at pc.
Calculates the size in bytes of the memory read or write of the instr at pc .