Module qtjambi
Package io.qt.core

Class QtEndian

java.lang.Object
io.qt.core.QtEndian

public final class QtEndian extends Object

Functions to convert between little and big endian representations of numbers

Java wrapper for Qt namespace QtEndian

  • Method Details

    • 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

      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

      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

      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

      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: