core/x86/instr.c
/* Sets the pos-th instr byte by storing the unsigned
 * character value in the pos-th slot
 * Must call instr_allocate_raw_bits before calling this function
 * (original bits are read-only!)
 */
Sets the pos-th instr byte by storing the unsigned
character value in the pos-th slot
Must call instr_allocate_raw_bits before calling this function
(original bits are read-only!)
Sets the pos - th instr byte by storing the unsigned character value in the pos - th slot Must call instr_allocate_raw_bits before calling this function ( original bits are read - only! )
void
instr_set_raw_byte(instr_t *instr, uint pos, byte val)
{
    CLIENT_ASSERT((instr->flags & INSTR_RAW_BITS_ALLOCATED) != 0,
                  "instr_set_raw_byte: no raw bits");
    CLIENT_ASSERT(pos >= 0 && pos < instr->length && instr->bytes != NULL,
                  "instr_set_raw_byte: ordinal invalid, or no raw bits");
    instr->bytes[pos] = (byte) val;
#ifdef X64
    instr_set_rip_rel_valid(instr, false); 
#endif
}
void instr_set_raw_byte ( instr_t * instr , uint pos , byte val ) { CLIENT_ASSERT ( ( instr -> flags & INSTR_RAW_BITS_ALLOCATED ) != 0 , " " ) ; CLIENT_ASSERT ( pos >= 0 && pos < instr -> length && instr -> bytes != NULL , " " ) ; instr -> bytes [ pos ] = ( byte ) val ; #ifdef X64 instr_set_rip_rel_valid ( instr , false ) ; #endif }
Sets the pos-th instr byte by storing the unsigned
 character value in the pos-th slot
 Must call instr_allocate_raw_bits before calling this function
 (original bits are read-only!)
Sets the pos - th instr byte by storing the unsigned character value in the pos - th slot Must call instr_allocate_raw_bits before calling this function ( original bits are read - only! )
/* relies on original raw bits */