/** * @param ptr Pointer. * @return Double value. */ public double readDouble(long ptr) { return GridUnsafe.getDouble(ptr); }
/** {@inheritDoc} */ @Override public double readDouble() { lastFinished = buf.remaining() >= 8; if (lastFinished) { int pos = buf.position(); buf.position(pos + 8); long off = baseOff + pos; return BIG_ENDIAN ? GridUnsafe.getDoubleLE(heapArr, off) : GridUnsafe.getDouble(heapArr, off); } else return 0; }
/** {@inheritDoc} */ @Override public double readDouble() { lastFinished = buf.remaining() >= 8; if (lastFinished) { int pos = buf.position(); buf.position(pos + 8); return GridUnsafe.getDouble(heapArr, baseOff + pos); } else return 0; }
/** {@inheritDoc} */ @Override public double readDouble() { lastFinished = buf.remaining() >= 8; if (lastFinished) { int pos = buf.position(); buf.position(pos + 8); long off = baseOff + pos; return BIG_ENDIAN ? GridUnsafe.getDoubleLE(heapArr, off) : GridUnsafe.getDouble(heapArr, off); } else return 0; }
/** {@inheritDoc} */ @Override public double readDouble() throws IOException { checkRange(8); double res = GridUnsafe.getDouble(buf, BYTE_ARR_OFF + pos); pos += 8; return res; }
/** {@inheritDoc} */ @Override public double getDouble(int idx) { ensure(idx, 8); return GridUnsafe.getDouble(ptr + idx); }
/** {@inheritDoc} */ @Override public double readDouble() { ensureEnoughData(8); double res = GridUnsafe.getDouble(data + pos); shift(8); return res; }
/** * @param ptr Pointer. * @return Double value. */ public double readDouble(long ptr) { return GridUnsafe.getDouble(ptr); }
/** {@inheritDoc} */ @Override public double readDouble() { lastFinished = buf.remaining() >= 8; if (lastFinished) { int pos = buf.position(); buf.position(pos + 8); return GridUnsafe.getDouble(heapArr, baseOff + pos); } else return 0; }
/** {@inheritDoc} */ @Override public double readDouble() { ensureEnoughData(8); double res = GridUnsafe.getDouble(data + pos); shift(8); return res; }