java.lang.Object
io.qt.core.QtEndian
Functions to convert between little and big endian representations of numbers
Java wrapper for Qt namespace QtEndian
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte
qbswap
(byte source) Seeqbswap<T,
std::enable_if_t<std::is_integral_v<T>>>(T) static double
qbswap
(double source) Seeqbswap(double)
static float
qbswap
(float source) Seeqbswap(float)
static int
qbswap
(int source) Seeqbswap<T,
std::enable_if_t<std::is_integral_v<T>>>(T) static long
qbswap
(long source) Seeqbswap<T,
std::enable_if_t<std::is_integral_v<T>>>(T) static short
qbswap
(short source) Seeqbswap<T,
std::enable_if_t<std::is_integral_v<T>>>(T) static QUuid.Id128Bytes
Seeqbswap(QUuid::Id128Bytes)
static byte
qFromBigEndian
(byte source) static double
qFromBigEndian
(double source) static float
qFromBigEndian
(float source) static int
qFromBigEndian
(int source) static long
qFromBigEndian
(long source) static short
qFromBigEndian
(short source) static QUuid.Id128Bytes
qFromBigEndian
(QUuid.Id128Bytes source) static byte
qFromLittleEndian
(byte source) static double
qFromLittleEndian
(double source) static float
qFromLittleEndian
(float source) static int
qFromLittleEndian
(int source) static long
qFromLittleEndian
(long source) static short
qFromLittleEndian
(short source) static QUuid.Id128Bytes
qFromLittleEndian
(QUuid.Id128Bytes source) static byte
qToBigEndian
(byte source) static double
qToBigEndian
(double source) static float
qToBigEndian
(float source) static int
qToBigEndian
(int source) static long
qToBigEndian
(long source) static short
qToBigEndian
(short source) static QUuid.Id128Bytes
qToBigEndian
(QUuid.Id128Bytes source) static byte
qToLittleEndian
(byte source) static double
qToLittleEndian
(double source) static float
qToLittleEndian
(float source) static int
qToLittleEndian
(int source) static long
qToLittleEndian
(long source) static short
qToLittleEndian
(short source) static QUuid.Id128Bytes
qToLittleEndian
(QUuid.Id128Bytes source)
-
Method Details
-
qFromBigEndian
- Parameters:
source
-- Returns:
- Since:
- This function was introduced in Qt 6.6.
-
qFromBigEndian
public static double qFromBigEndian(double source) - Parameters:
source
-- Returns:
-
qFromBigEndian
public static float qFromBigEndian(float source) - Parameters:
source
-- Returns:
-
qFromBigEndian
public static short qFromBigEndian(short source) - Parameters:
source
-- Returns:
-
qFromBigEndian
public static int qFromBigEndian(int source) - Parameters:
source
-- Returns:
-
qFromBigEndian
public static long qFromBigEndian(long source) - Parameters:
source
-- Returns:
-
qFromBigEndian
public static byte qFromBigEndian(byte source) - Parameters:
source
-- Returns:
-
qFromLittleEndian
- Parameters:
source
-- Returns:
- Since:
- This function was introduced in Qt 6.6.
-
qFromLittleEndian
public static double qFromLittleEndian(double source) - Parameters:
source
-- Returns:
-
qFromLittleEndian
public static float qFromLittleEndian(float source) - Parameters:
source
-- Returns:
-
qFromLittleEndian
public static short qFromLittleEndian(short source) - Parameters:
source
-- Returns:
-
qFromLittleEndian
public static int qFromLittleEndian(int source) - Parameters:
source
-- Returns:
-
qFromLittleEndian
public static long qFromLittleEndian(long source) - Parameters:
source
-- Returns:
-
qFromLittleEndian
public static byte qFromLittleEndian(byte source) - Parameters:
source
-- Returns:
-
qToBigEndian
- Parameters:
source
-- Returns:
- Since:
- This function was introduced in Qt 6.6.
-
qToBigEndian
public static double qToBigEndian(double source) - Parameters:
source
-- Returns:
-
qToBigEndian
public static float qToBigEndian(float source) - Parameters:
source
-- Returns:
-
qToBigEndian
public static short qToBigEndian(short source) - Parameters:
source
-- Returns:
-
qToBigEndian
public static int qToBigEndian(int source) - Parameters:
source
-- Returns:
-
qToBigEndian
public static long qToBigEndian(long source) - Parameters:
source
-- Returns:
-
qToBigEndian
public static byte qToBigEndian(byte source) - Parameters:
source
-- Returns:
-
qToLittleEndian
- Parameters:
source
-- Returns:
- Since:
- This function was introduced in Qt 6.6.
-
qToLittleEndian
public static double qToLittleEndian(double source) - Parameters:
source
-- Returns:
-
qToLittleEndian
public static float qToLittleEndian(float source) - Parameters:
source
-- Returns:
-
qToLittleEndian
public static short qToLittleEndian(short source) - Parameters:
source
-- Returns:
-
qToLittleEndian
public static int qToLittleEndian(int source) - Parameters:
source
-- Returns:
-
qToLittleEndian
public static long qToLittleEndian(long source) - Parameters:
source
-- Returns:
-
qToLittleEndian
public static byte qToLittleEndian(byte source) - Parameters:
source
-- Returns:
-
qbswap
See
qbswap(QUuid::Id128Bytes)
- Parameters:
b
-- Returns:
-
qbswap
public static double qbswap(double source) See
qbswap(double)
- Parameters:
source
-- Returns:
-
qbswap
public static float qbswap(float source) See
qbswap(float)
- Parameters:
source
-- Returns:
-
qbswap
public static short qbswap(short source) See
qbswap<T,
std::enable_if_t<std::is_integral_v<T>>>(T) - Parameters:
source
-- Returns:
-
qbswap
public static int qbswap(int source) See
qbswap<T,
std::enable_if_t<std::is_integral_v<T>>>(T) - Parameters:
source
-- Returns:
-
qbswap
public static long qbswap(long source) See
qbswap<T,
std::enable_if_t<std::is_integral_v<T>>>(T) - Parameters:
source
-- Returns:
-
qbswap
public static byte qbswap(byte source) See
qbswap<T,
std::enable_if_t<std::is_integral_v<T>>>(T) - Parameters:
source
-- Returns:
-