J_Class.c
uint8_t* jLoadClassConst(J_Class* jc,uint16_t idx,uint8_t* p,uint16_t* tag){
  switch((*tag=getUint8(p))){
  case CONSTANT_Utf8:
	p++;
	p += getUint16(p);
	p+=2;
	break;

  case CONSTANT_Integer:
  case CONSTANT_Float:
  case CONSTANT_Fieldref:
  case CONSTANT_Methodref:
  case CONSTANT_InterfaceMethodref: 
  case CONSTANT_NameAndType: 
	p++;
	p += 4;
	break;

  case CONSTANT_Class: 
  case CONSTANT_String: 
	p++;
	p += 2; 
	break;

  case CONSTANT_Long: 
  case CONSTANT_Double: 
	p++;
	p += 8; 
	break;
  }

#ifdef DEBUG_CONSTS 
  viewConst(jc,idx);
#endif
  
  return p;
}
/**
 * Load constant from pool
 * @return tag - constant type
 */
Load constant from pool
@return tag - constant type
Load constant from pool @return tag - constant type
uint8_t* jLoadClassConst(J_Class* jc,uint16_t idx,uint8_t* p,uint16_t* tag){
  switch((*tag=getUint8(p))){
  case CONSTANT_Utf8:
	p++;
	p += getUint16(p);
	p+=2;
	break;
  case CONSTANT_Integer:
  case CONSTANT_Float:
  case CONSTANT_Fieldref:
  case CONSTANT_Methodref:
  case CONSTANT_InterfaceMethodref: 
  case CONSTANT_NameAndType: 
	p++;
	p += 4;
	break;
  case CONSTANT_Class: 
  case CONSTANT_String: 
	p++;
	p += 2; 
	break;
  case CONSTANT_Long: 
  case CONSTANT_Double: 
	p++;
	p += 8; 
	break;
  }
#ifdef DEBUG_CONSTS 
  viewConst(jc,idx);
#endif
  return p;
}
uint8_t * jLoadClassConst ( J_Class * jc , uint16_t idx , uint8_t * p , uint16_t * tag ) { switch ( ( * tag = getUint8 ( p ) ) ) { case CONSTANT_Utf8 : p ++ ; p += getUint16 ( p ) ; p += 2 ; break ; case CONSTANT_Integer : case CONSTANT_Float : case CONSTANT_Fieldref : case CONSTANT_Methodref : case CONSTANT_InterfaceMethodref : case CONSTANT_NameAndType : p ++ ; p += 4 ; break ; case CONSTANT_Class : case CONSTANT_String : p ++ ; p += 2 ; break ; case CONSTANT_Long : case CONSTANT_Double : p ++ ; p += 8 ; break ; } #ifdef DEBUG_CONSTS viewConst ( jc , idx ) ; #endif return p ; }
Load constant from pool
 @return tag - constant type
Load constant from pool @return tag - constant type