本文整理汇总了Java中org.apache.ignite.internal.util.GridUnsafe.putDouble方法的典型用法代码示例。如果您正苦于以下问题:Java GridUnsafe.putDouble方法的具体用法?Java GridUnsafe.putDouble怎么用?Java GridUnsafe.putDouble使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.ignite.internal.util.GridUnsafe
的用法示例。
在下文中一共展示了GridUnsafe.putDouble方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeDouble
import org.apache.ignite.internal.util.GridUnsafe; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeDouble(double val) {
lastFinished = buf.remaining() >= 8;
if (lastFinished) {
int pos = buf.position();
long off = baseOff + pos;
if (BIG_ENDIAN)
GridUnsafe.putDoubleLE(heapArr, off, val);
else
GridUnsafe.putDouble(heapArr, off, val);
buf.position(pos + 8);
}
}
示例2: writeDouble
import org.apache.ignite.internal.util.GridUnsafe; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeDouble(double val) {
lastFinished = buf.remaining() >= 8;
if (lastFinished) {
int pos = buf.position();
GridUnsafe.putDouble(heapArr, baseOff + pos, val);
buf.position(pos + 8);
}
}
示例3: set
import org.apache.ignite.internal.util.GridUnsafe; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void set(int x, int y, double v) {
GridUnsafe.putDouble(pointerOffset(x, y), v);
}
示例4: set
import org.apache.ignite.internal.util.GridUnsafe; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void set(int i, double v) {
GridUnsafe.putDouble(pointerOffset(i), v);
}
示例5: writeDouble
import org.apache.ignite.internal.util.GridUnsafe; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeDouble(double val) throws IOException {
int writePos = ensure(8);
GridUnsafe.putDouble(buf, BYTE_ARR_OFF + writePos, val);
}
示例6: writeDouble
import org.apache.ignite.internal.util.GridUnsafe; //导入方法依赖的package包/类
/**
* @param ptr Pointer.
* @param v Value.
*/
public void writeDouble(long ptr, double v) {
GridUnsafe.putDouble(ptr, v);
}