# E:/DevIL/src-IL/include/il_endian.h File Reference

`#include "il_internal.h"`

Go to the source code of this file.

## Defines

#define | __LITTLE_ENDIAN__
#define | Short(s)
#define | UShort(s)
#define | Int(i)
#define | UInt(i)
#define | Float(f)
#define | Double(d)
#define | BigShort(s) iSwapShort(s)
#define | BigUShort(s) iSwapUShort(s)
#define | BigInt(i) iSwapInt(i)
#define | BigUInt(i) iSwapUInt(i)
#define | BigFloat(f) iSwapFloat(f)
#define | BigDouble(d) iSwapDouble(d)
#define | dswap(x, y) t=b[x];b[x]=b[y];b[y]=b[x];

## Functions

void | iSwapUShort (ILushort *s)
void | iSwapShort (ILshort *s)
void | iSwapUInt (ILuint *i)
void | iSwapInt (ILint *i)
void | iSwapFloat (ILfloat *f)
void | iSwapDouble (ILdouble *d)
ILushort | GetLittleUShort ()
ILshort | GetLittleShort ()
ILuint | GetLittleUInt ()
ILint | GetLittleInt ()
ILfloat | GetLittleFloat ()
ILdouble | GetLittleDouble ()
ILushort | GetBigUShort ()
ILshort | GetBigShort ()
ILuint | GetBigUInt ()
ILint | GetBigInt ()
ILfloat | GetBigFloat ()
ILdouble | GetBigDouble ()
ILubyte | SaveLittleUShort (ILushort s)
ILubyte | SaveLittleShort (ILshort s)
ILubyte | SaveLittleUInt (ILuint i)
ILubyte | SaveLittleInt (ILint i)
ILubyte | SaveLittleFloat (ILfloat f)
ILubyte | SaveLittleDouble (ILdouble d)
ILubyte | SaveBigUShort (ILushort s)
ILubyte | SaveBigShort (ILshort s)
ILubyte | SaveBigUInt (ILuint i)
ILubyte | SaveBigInt (ILint i)
ILubyte | SaveBigFloat (ILfloat f)
ILubyte | SaveBigDouble (ILdouble d)
void | EndianSwapData (void *_Image)

## Define Documentation

#define __LITTLE_ENDIAN__

#define BigDouble | ( | d |  | ) | iSwapDouble(d)

#define BigFloat | ( | f |  | ) | iSwapFloat(f)

#define BigInt | ( | i |  | ) | iSwapInt(i)

#define BigShort | ( | s |  | ) | iSwapShort(s)

#define BigUInt | ( | i |  | ) | iSwapUInt(i)

Referenced by ParseResources().

#define BigUShort | ( | s |  | ) | iSwapUShort(s)

Referenced by ParseResources().

#define Double | ( | d |  | ) |

#define dswap | ( | x,
|  | y |  | ) | t=b[x];b[x]=b[y];b[y]=b[x];

Referenced by iSwapDouble().

#define Float | ( | f |  | ) |

#define Int | ( | i |  | ) |

#define Short | ( | s |  | ) |

Referenced by iGetOS2Head().

#define UInt | ( | i |  | ) |

Referenced by DecompressDXT1(), DecompressDXT3(), DecompressDXT5(), GetChannel(), iGetOS2Head(), iLoadTplInternal(), iLoadWdpInternal(), ilReadUncompBmp(), ParseChunks(), ReadAlphaBlock(), ReadGenAttributes(), and ReadLayerBlock().

#define UShort | ( | s |  | ) |

Referenced by DecompressDXT1(), iGetOS2Head(), iLoadTplInternal(), ParseChunks(), and ReadGenAttributes().

## Function Documentation

void EndianSwapData | ( | void * | _Image | ) |

INLINE ILdouble GetBigDouble | ( |  | ) |

INLINE ILfloat GetBigFloat | ( |  | ) |

Referenced by iGetPicHead().

INLINE ILint GetBigInt | ( |  | ) |

Referenced by iff_begin_read_chunk(), iGetPicHead(), iGetSgiHead(), and iLoadIcnsInternal().

INLINE ILshort GetBigShort | ( |  | ) |

Referenced by iGetPicHead(), and iLoadIffInternal().

INLINE ILuint GetBigUInt | ( |  | ) |

Referenced by iGetPsdHead(), iGetSunHead(), iGetTplHead(), iLoadIffInternal(), iLoadTplInternal(), iLoadWdpInternal(), ReadCMYK(), ReadGrey(), ReadIndexed(), ReadRGB(), TplGetIndexImage(), and VLWESC().

INLINE ILushort GetBigUShort | ( |  | ) |

Referenced by channelReadMixed(), iGetPixHead(), iGetPsdHead(), iGetSgiHead(), ilisValidTiffFunc(), iLoadIffInternal(), iLoadTplInternal(), iLoadWdpInternal(), iReadColMapTga(), ReadCMYK(), ReadGrey(), ReadIndexed(), ReadRGB(), and TplGetIndexImage().

INLINE ILdouble GetLittleDouble | ( |  | ) |

INLINE ILfloat GetLittleFloat | ( |  | ) |

Referenced by iGetVtfHead().

INLINE ILint GetLittleInt | ( |  | ) |

Referenced by iGetBmpHead(), iGetVtfHead(), iLoadCutInternal(), iLoadDoomInternal(), and iLoadIconInternal().

INLINE ILshort GetLittleShort | ( |  | ) |

Referenced by iGetBmpHead(), iGetTgaHead(), iLoadCutInternal(), iLoadDoomInternal(), and iLoadIconInternal().

INLINE ILuint GetLittleUInt | ( |  | ) |

Referenced by GetChannel(), iGetBmpHead(), iGetDdsHead(), iGetExrHead(), iGetLifHead(), iGetVtfHead(), iGetWdpHead(), iIsValidMdl(), ilLoadPltPal(), iLoadExrInternal(), iLoadIconInternal(), iLoadMdlInternal(), iLoadRawInternal(), iLoadWalInternal(), iLoadWdpInternal(), ParseChunks(), ReadAlphaBlock(), ReadGenAttributes(), ReadLayerBlock(), and ReadPalette().

INLINE ILushort GetLittleUShort | ( |  | ) |

Referenced by GetImages(), iGetBmpHead(), iGetDcxHead(), iGetPcxHead(), iGetPspHead(), iGetTgaHead(), iGetVtfHead(), ilisValidTiffFunc(), iLoadGifInternal(), iLoadPxrInternal(), iLoadWdpInternal(), ReadAlphaBlock(), ReadLayerBlock(), and SkipExtensions().

INLINE void iSwapDouble | ( | ILdouble * | d | ) |

Referenced by EndianSwapData(), GetBigDouble(), GetLittleDouble(), SaveBigDouble(), and SaveLittleDouble().

INLINE void iSwapFloat | ( | ILfloat * | f | ) |

Referenced by EndianSwapData(), GetBigFloat(), GetLittleFloat(), SaveBigFloat(), and SaveLittleFloat().

INLINE void iSwapInt | ( | ILint * | i | ) |

Referenced by GetBigInt(), GetLittleInt(), SaveBigInt(), and SaveLittleInt().

INLINE void iSwapShort | ( | ILshort * | s | ) |

Referenced by GetBigShort(), GetLittleShort(), SaveBigShort(), and SaveLittleShort().

INLINE void iSwapUInt | ( | ILuint * | i | ) |

Referenced by EndianSwapData(), GetBigUInt(), GetLittleUInt(), iReadRleSgi(), iSaveRleSgi(), iSwapFloat(), iSwapInt(), SaveBigUInt(), and SaveLittleUInt().

INLINE void iSwapUShort | ( | ILushort * | s | ) |

Referenced by EndianSwapData(), GetBigUShort(), GetCompChanLen(), GetLittleUShort(), iGetScanLine(), iSwapShort(), PsdGetData(), SaveBigUShort(), and SaveLittleUShort().

INLINE ILubyte SaveBigDouble | ( | ILdouble | d | ) |

INLINE ILubyte SaveBigFloat | ( | ILfloat | f | ) |

INLINE ILubyte SaveBigInt | ( | ILint | i | ) |

Referenced by iSavePsdInternal(), and iSaveSgiInternal().

INLINE ILubyte SaveBigShort | ( | ILshort | s | ) |

Referenced by iSavePsdInternal().

INLINE ILubyte SaveBigUInt | ( | ILuint | i | ) |

Referenced by iSaveSgiInternal().

INLINE ILubyte SaveBigUShort | ( | ILushort | s | ) |

Referenced by iSavePsdInternal(), and iSaveSgiInternal().

INLINE ILubyte SaveLittleDouble | ( | ILdouble | d | ) |

INLINE ILubyte SaveLittleFloat | ( | ILfloat | f | ) |

INLINE ILubyte SaveLittleInt | ( | ILint | i | ) |

Referenced by iSaveBitmapInternal(), and iSaveSgiInternal().

INLINE ILubyte SaveLittleShort | ( | ILshort | s | ) |

Referenced by iSaveTargaInternal().

INLINE ILubyte SaveLittleUInt | ( | ILuint | i | ) |

Referenced by Compress(), iSaveBitmapInternal(), iSaveRawInternal(), iSaveTargaInternal(), and WriteHeader().

INLINE ILubyte SaveLittleUShort | ( | ILushort | s | ) |

Referenced by Compress(), iSaveBitmapInternal(), iSavePcxInternal(), and iSaveTargaInternal().