sun.misc.Unsafe.arrayIndexScale0()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(154)

本文整理了Java中sun.misc.Unsafe.arrayIndexScale0()方法的一些代码示例,展示了Unsafe.arrayIndexScale0()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Unsafe.arrayIndexScale0()方法的具体详情如下:
包路径:sun.misc.Unsafe
类名称:Unsafe
方法名:arrayIndexScale0

Unsafe.arrayIndexScale0介绍

[英]Helper for #arrayIndexScale, which does all the work, assuming the parameter is deemed valid.
[中]#arrayindexcale的助手,假设参数被认为有效,它将完成所有工作。

代码示例

代码示例来源:origin: robovm/robovm

/**
 * Gets the size of each element of the given array class.
 *
 * @param clazz non-null; class in question; must be an array class
 * @return > 0; the size of each element of the array
 */
public int arrayIndexScale(Class clazz) {
  if (! clazz.isArray()) {
    throw new IllegalArgumentException(
        "valid for array classes only");
  }
  return arrayIndexScale0(clazz);
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * Gets the size of each element of the given array class.
 *
 * @param clazz non-null; class in question; must be an array class
 * @return > 0; the size of each element of the array
 */
public int arrayIndexScale(Class clazz) {
  if (! clazz.isArray()) {
    throw new IllegalArgumentException(
        "valid for array classes only");
  }
  return arrayIndexScale0(clazz);
}

代码示例来源:origin: MobiVM/robovm

/**
 * Gets the size of each element of the given array class.
 *
 * @param clazz non-null; class in question; must be an array class
 * @return > 0; the size of each element of the array
 */
public int arrayIndexScale(Class clazz) {
  if (! clazz.isArray()) {
    throw new IllegalArgumentException(
        "valid for array classes only");
  }
  return arrayIndexScale0(clazz);
}

代码示例来源:origin: ibinti/bugvm

/**
 * Gets the size of each element of the given array class.
 *
 * @param clazz non-null; class in question; must be an array class
 * @return > 0; the size of each element of the array
 */
public int arrayIndexScale(Class clazz) {
  if (! clazz.isArray()) {
    throw new IllegalArgumentException(
        "valid for array classes only");
  }
  return arrayIndexScale0(clazz);
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * Gets the size of each element of the given array class.
 *
 * @param clazz non-null; class in question; must be an array class
 * @return > 0; the size of each element of the array
 */
public int arrayIndexScale(Class clazz) {
  if (! clazz.isArray()) {
    throw new IllegalArgumentException(
        "valid for array classes only");
  }
  return arrayIndexScale0(clazz);
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * Gets the size of each element of the given array class.
 *
 * @param clazz non-null; class in question; must be an array class
 * @return > 0; the size of each element of the array
 */
public int arrayIndexScale(Class clazz) {
  if (! clazz.isArray()) {
    throw new IllegalArgumentException(
        "valid for array classes only");
  }
  return arrayIndexScale0(clazz);
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * Gets the size of each element of the given array class.
 *
 * @param clazz non-null; class in question; must be an array class
 * @return > 0; the size of each element of the array
 */
public int arrayIndexScale(Class clazz) {
  if (! clazz.isArray()) {
    throw new IllegalArgumentException(
        "valid for array classes only");
  }
  return arrayIndexScale0(clazz);
}

相关文章

Unsafe类方法