当前位置: 首页>>代码示例>>Java>>正文


Java VM.longBitsToDouble方法代码示例

本文整理汇总了Java中com.sun.squawk.VM.longBitsToDouble方法的典型用法代码示例。如果您正苦于以下问题:Java VM.longBitsToDouble方法的具体用法?Java VM.longBitsToDouble怎么用?Java VM.longBitsToDouble使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.sun.squawk.VM的用法示例。


在下文中一共展示了VM.longBitsToDouble方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getDouble

import com.sun.squawk.VM; //导入方法依赖的package包/类
/**
 * Gets the <code>double</code> at the given offset in the memory area
 *  associated with this object.
 * <p>
 *  The load is not required to be atomic even it is located on a natural boundary.
 * <p>
 *  Caching of the memory access is controlled by the memory <code>type</code> requested
 *  when the <code>RawMemoryAccess</code> instance was created.  If the memory is not cached,
 *  this method guarantees serialized access (that is, the memory access at the memory
 *  occurs in the same order as in the program.  Multiple writes to the same location
 *  may not be coalesced.)
 *
 * @param offset The offset in bytes from the beginning of the raw memory area
 *      from which to load the long.
 *
 * @throws OffsetOutOfBoundsException Thrown if the offset is invalid.
 *
 * @throws SizeOutOfBoundsException  Thrown if the object is not mapped,
 *      or if the double falls in an invalid address range.
 *
 * @throws java.lang.SecurityException Thrown if this access is
 * not permitted by the security manager.
 *
 *
 * @return The double from raw memory.
 */
public double getDouble(long offset) {
    return VM.longBitsToDouble(getLong(offset));
}
 
开发者ID:tomatsu,项目名称:squawk,代码行数:30,代码来源:RawMemoryFloatAccess.java


注:本文中的com.sun.squawk.VM.longBitsToDouble方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。