io.qt.core.QtEndian Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.core;
import io.qt.*;
/**
* Functions to convert between little and big endian representations of numbers
* Java wrapper for Qt namespace QtEndian
*/
public final class QtEndian
{
static {
QtJambi_LibraryUtilities.initialize();
}
private QtEndian() throws java.lang.InstantiationError { throw new java.lang.InstantiationError("Cannot instantiate namespace QtEndian."); }
/**
*
*/
public static io.qt.core.QUuid.@NonNull Id128Bytes qFromBigEndian(io.qt.core.QUuid.@NonNull Id128Bytes source){
return qFromBigEndian_native_QUuid_Id128Bytes(QtJambi_LibraryUtilities.internal.checkedNativeId(source));
}
private native static io.qt.core.QUuid.Id128Bytes qFromBigEndian_native_QUuid_Id128Bytes(long source);
/**
*
*/
public native static double qFromBigEndian(double source);
/**
*
*/
public native static float qFromBigEndian(float source);
/**
*
*/
public native static short qFromBigEndian(short source);
/**
*
*/
public native static int qFromBigEndian(int source);
/**
*
*/
public native static long qFromBigEndian(long source);
/**
*
*/
public native static byte qFromBigEndian(byte source);
/**
*
*/
public static io.qt.core.QUuid.@NonNull Id128Bytes qFromLittleEndian(io.qt.core.QUuid.@NonNull Id128Bytes source){
return qFromLittleEndian_native_QUuid_Id128Bytes(QtJambi_LibraryUtilities.internal.checkedNativeId(source));
}
private native static io.qt.core.QUuid.Id128Bytes qFromLittleEndian_native_QUuid_Id128Bytes(long source);
/**
*
*/
public native static double qFromLittleEndian(double source);
/**
*
*/
public native static float qFromLittleEndian(float source);
/**
*
*/
public native static short qFromLittleEndian(short source);
/**
*
*/
public native static int qFromLittleEndian(int source);
/**
*
*/
public native static long qFromLittleEndian(long source);
/**
*
*/
public native static byte qFromLittleEndian(byte source);
/**
*
*/
public static io.qt.core.QUuid.@NonNull Id128Bytes qToBigEndian(io.qt.core.QUuid.@NonNull Id128Bytes source){
return qToBigEndian_native_QUuid_Id128Bytes(QtJambi_LibraryUtilities.internal.checkedNativeId(source));
}
private native static io.qt.core.QUuid.Id128Bytes qToBigEndian_native_QUuid_Id128Bytes(long source);
/**
*
*/
public native static double qToBigEndian(double source);
/**
*
*/
public native static float qToBigEndian(float source);
/**
*
*/
public native static short qToBigEndian(short source);
/**
*
*/
public native static int qToBigEndian(int source);
/**
*
*/
public native static long qToBigEndian(long source);
/**
*
*/
public native static byte qToBigEndian(byte source);
/**
*
*/
public static io.qt.core.QUuid.@NonNull Id128Bytes qToLittleEndian(io.qt.core.QUuid.@NonNull Id128Bytes source){
return qToLittleEndian_native_QUuid_Id128Bytes(QtJambi_LibraryUtilities.internal.checkedNativeId(source));
}
private native static io.qt.core.QUuid.Id128Bytes qToLittleEndian_native_QUuid_Id128Bytes(long source);
/**
*
*/
public native static double qToLittleEndian(double source);
/**
*
*/
public native static float qToLittleEndian(float source);
/**
*
*/
public native static short qToLittleEndian(short source);
/**
*
*/
public native static int qToLittleEndian(int source);
/**
*
*/
public native static long qToLittleEndian(long source);
/**
*
*/
public native static byte qToLittleEndian(byte source);
/**
* See qbswap(QUuid::Id128Bytes)
*/
public static io.qt.core.QUuid.@NonNull Id128Bytes qbswap(io.qt.core.QUuid.@NonNull Id128Bytes b){
return qbswap_native_QUuid_Id128Bytes(QtJambi_LibraryUtilities.internal.checkedNativeId(b));
}
private native static io.qt.core.QUuid.Id128Bytes qbswap_native_QUuid_Id128Bytes(long b);
/**
* See qbswap(double)
*/
public native static double qbswap(double source);
/**
* See qbswap(float)
*/
public native static float qbswap(float source);
/**
* See qbswap<T, std::enable_if_t<std::is_integral_v<T>>>(T)
*/
public native static short qbswap(short source);
/**
* See qbswap<T, std::enable_if_t<std::is_integral_v<T>>>(T)
*/
public native static int qbswap(int source);
/**
* See qbswap<T, std::enable_if_t<std::is_integral_v<T>>>(T)
*/
public native static long qbswap(long source);
/**
* See qbswap<T, std::enable_if_t<std::is_integral_v<T>>>(T)
*/
public native static byte qbswap(byte source);
}