/** * Returns the float resulting from reversing 4 bytes of a specified * float. * * @param v input value for which byte reversal is desired * @return the value represented by the bytes of <code>v</code> * reversed */ static public float swapFloat(float v) { int l = swapInt(Float.floatToIntBits(v)); return (Float.intBitsToFloat(l)); }
/** * Returns the float resulting from reversing 4 bytes of a specified * float. * * @param v input value for which byte reversal is desired * @return the value represented by the bytes of <code>v</code> * reversed */ static public float swapFloat(float v) { int l = swapInt(Float.floatToIntBits(v)); return (Float.intBitsToFloat(l)); }
/** * Returns the float resulting from reversing 4 bytes of a specified * float. * * @param v input value for which byte reversal is desired * @return the value represented by the bytes of <code>v</code> * reversed */ static public float swapFloat(float v) { int l = swapInt(Float.floatToIntBits(v)); return (Float.intBitsToFloat(l)); }
/** * Returns the int resulting from reversing 4 bytes of a specified * int. * * @param v input value for which byte reversal is desired * @return the value represented by the bytes of <code>v</code> * reversed */ static public int swapInt(int v) { return (swapInt(intToBytes(v), 0)); }
/** * Returns the int resulting from reversing 4 bytes of a specified * int. * * @param v input value for which byte reversal is desired * @return the value represented by the bytes of <code>v</code> * reversed */ static public int swapInt(int v) { return (swapInt(intToBytes(v), 0)); }
/** * Returns the int resulting from reversing 4 bytes of a specified * int. * * @param v input value for which byte reversal is desired * @return the value represented by the bytes of <code>v</code> * reversed */ static public int swapInt(int v) { return (swapInt(intToBytes(v), 0)); }