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

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

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

Unsafe.arrayBaseOffset0介绍

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

代码示例

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

/**
 * Gets the offset from the start of an array object's memory to
 * the memory used to store its initial (zeroeth) element.
 *
 * @param clazz non-null; class in question; must be an array class
 * @return the offset to the initial element
 */
public int arrayBaseOffset(Class clazz) {
  if (! clazz.isArray()) {
    throw new IllegalArgumentException(
        "valid for array classes only");
  }
  return arrayBaseOffset0(clazz);
}

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

/**
 * Gets the offset from the start of an array object's memory to
 * the memory used to store its initial (zeroeth) element.
 *
 * @param clazz non-null; class in question; must be an array class
 * @return the offset to the initial element
 */
public int arrayBaseOffset(Class clazz) {
  if (! clazz.isArray()) {
    throw new IllegalArgumentException(
        "valid for array classes only");
  }
  return arrayBaseOffset0(clazz);
}

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

/**
 * Gets the offset from the start of an array object's memory to
 * the memory used to store its initial (zeroeth) element.
 *
 * @param clazz non-null; class in question; must be an array class
 * @return the offset to the initial element
 */
public int arrayBaseOffset(Class clazz) {
  if (! clazz.isArray()) {
    throw new IllegalArgumentException(
        "valid for array classes only");
  }
  return arrayBaseOffset0(clazz);
}

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

/**
 * Gets the offset from the start of an array object's memory to
 * the memory used to store its initial (zeroeth) element.
 *
 * @param clazz non-null; class in question; must be an array class
 * @return the offset to the initial element
 */
public int arrayBaseOffset(Class clazz) {
  if (! clazz.isArray()) {
    throw new IllegalArgumentException(
        "valid for array classes only");
  }
  return arrayBaseOffset0(clazz);
}

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

/**
 * Gets the offset from the start of an array object's memory to
 * the memory used to store its initial (zeroeth) element.
 *
 * @param clazz non-null; class in question; must be an array class
 * @return the offset to the initial element
 */
public int arrayBaseOffset(Class clazz) {
  if (! clazz.isArray()) {
    throw new IllegalArgumentException(
        "valid for array classes only");
  }
  return arrayBaseOffset0(clazz);
}

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

/**
 * Gets the offset from the start of an array object's memory to
 * the memory used to store its initial (zeroeth) element.
 *
 * @param clazz non-null; class in question; must be an array class
 * @return the offset to the initial element
 */
public int arrayBaseOffset(Class clazz) {
  if (! clazz.isArray()) {
    throw new IllegalArgumentException(
        "valid for array classes only");
  }
  return arrayBaseOffset0(clazz);
}

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

/**
 * Gets the offset from the start of an array object's memory to
 * the memory used to store its initial (zeroeth) element.
 *
 * @param clazz non-null; class in question; must be an array class
 * @return the offset to the initial element
 */
public int arrayBaseOffset(Class clazz) {
  if (! clazz.isArray()) {
    throw new IllegalArgumentException(
        "valid for array classes only");
  }
  return arrayBaseOffset0(clazz);
}

相关文章

Unsafe类方法