libudis86/decode.c
static void 
decode_mem_disp(struct ud* u, unsigned int size, struct ud_operand *op)
{
  switch (size) {
  case 8:
    op->offset = 8; 
    op->lval.ubyte  = inp_uint8(u);
    break;
  case 16:
    op->offset = 16; 
    op->lval.uword  = inp_uint16(u); 
    break;
  case 32:
    op->offset = 32; 
    op->lval.udword = inp_uint32(u); 
    break;
  case 64:
    op->offset = 64; 
    op->lval.uqword = inp_uint64(u); 
    break;
  default:
      return;
  }
}
/* 
 * decode_mem_disp
 *
 *    Decode mem address displacement.
 */
decode_mem_disp
Decode mem address displacement.
decode_mem_disp Decode mem address displacement .
static void 
decode_mem_disp(struct ud* u, unsigned int size, struct ud_operand *op)
{
  switch (size) {
  case 8:
    op->offset = 8; 
    op->lval.ubyte  = inp_uint8(u);
    break;
  case 16:
    op->offset = 16; 
    op->lval.uword  = inp_uint16(u); 
    break;
  case 32:
    op->offset = 32; 
    op->lval.udword = inp_uint32(u); 
    break;
  case 64:
    op->offset = 64; 
    op->lval.uqword = inp_uint64(u); 
    break;
  default:
      return;
  }
}
static void decode_mem_disp ( struct ud * u , unsigned int size , struct ud_operand * op ) { switch ( size ) { case 8 : op -> offset = 8 ; op -> lval . ubyte = inp_uint8 ( u ) ; break ; case 16 : op -> offset = 16 ; op -> lval . uword = inp_uint16 ( u ) ; break ; case 32 : op -> offset = 32 ; op -> lval . udword = inp_uint32 ( u ) ; break ; case 64 : op -> offset = 64 ; op -> lval . uqword = inp_uint64 ( u ) ; break ; default : return ; } }
decode_mem_disp
    Decode mem address displacement.
decode_mem_disp Decode mem address displacement .