static public float swapFloat ( byte [ ] b , int offset ) { int accum = 0 ; for ( int shiftBy = 0 , i = offset ; shiftBy < 32 ; shiftBy += 8 , i ++ ) accum |= ( [ i ] & 0xff ) << shiftBy ; return Float . intBitsToFloat ( accum ) ; }
Returns the float resulting from reversing 4 bytes at a specified offset in a byte array .