/** * Constructs double from byte array. * * @param bytes Byte array. * @param off Offset in {@code bytes} array. * @return Double value. */ public static double bytesToDouble(byte[] bytes, int off) { return Double.longBitsToDouble(bytesToLong(bytes, off)); }
/** * Converts bytes to GridUuid. * * @param in Input byte array. * @param off Offset from which start reading. * @return GridUuid instance. */ public static IgniteUuid bytesToIgniteUuid(byte[] in, int off) { long most = bytesToLong(in, off); long least = bytesToLong(in, off + 8); long locId = bytesToLong(in, off + 16); return new IgniteUuid(IgniteUuidCache.onIgniteUuidRead(new UUID(most, least)), locId); }
/** * Constructs double from byte array. * * @param bytes Byte array. * @param off Offset in {@code bytes} array. * @return Double value. */ public static double bytesToDouble(byte[] bytes, int off) { return Double.longBitsToDouble(bytesToLong(bytes, off)); }
/** * Converts bytes to GridUuid. * * @param in Input byte array. * @param off Offset from which start reading. * @return GridUuid instance. */ public static IgniteUuid bytesToIgniteUuid(byte[] in, int off) { long most = bytesToLong(in, off); long least = bytesToLong(in, off + 8); long locId = bytesToLong(in, off + 16); return new IgniteUuid(IgniteUuidCache.onIgniteUuidRead(new UUID(most, least)), locId); }