Now exporting endian convert function