core/x86/instr.c
/* Copies num_bytes bytes from start into the mangled bytes
 * array of instr.
 * Must call instr_allocate_raw_bits before calling this function.
 */
Copies num_bytes bytes from start into the mangled bytes
array of instr.
Must call instr_allocate_raw_bits before calling this function.
Copies num_bytes bytes from start into the mangled bytes array of instr . Must call instr_allocate_raw_bits before calling this function .
void 
instr_set_raw_bytes(instr_t *instr, byte *start, uint num_bytes)
{
    CLIENT_ASSERT((instr->flags & INSTR_RAW_BITS_ALLOCATED) != 0,
                  "instr_set_raw_bytes: no raw bits");
    CLIENT_ASSERT(num_bytes <= instr->length && instr->bytes != NULL,
                  "instr_set_raw_bytes: ordinal invalid, or no raw bits");
    memcpy(instr->bytes, start, num_bytes);
#ifdef X64
    instr_set_rip_rel_valid(instr, false); 
#endif
}
void instr_set_raw_bytes ( instr_t * instr , byte * start , uint num_bytes ) { CLIENT_ASSERT ( ( instr -> flags & INSTR_RAW_BITS_ALLOCATED ) != 0 , " " ) ; CLIENT_ASSERT ( num_bytes <= instr -> length && instr -> bytes != NULL , " " ) ; memcpy ( instr -> bytes , start , num_bytes ) ; #ifdef X64 instr_set_rip_rel_valid ( instr , false ) ; #endif }
Copies num_bytes bytes from start into the mangled bytes
 array of instr.
Copies num_bytes bytes from start into the mangled bytes array of instr .
/* relies on original raw bits */