#include <stdio.h>
#include <stdlib.h>
#include "define.h"
#include "structs.h"
Go to the source code of this file.
◆ SWAP_DOUBLE
| #define SWAP_DOUBLE |
( |
|
Var | ) |
Var = *(double*) SwapEndian((void*)&Var, sizeof(double)) |
◆ SWAP_FLOAT
| #define SWAP_FLOAT |
( |
|
Var | ) |
Var = *(float*) SwapEndian((void*)&Var, sizeof(float)) |
◆ SWAP_INT
| #define SWAP_INT |
( |
|
Var | ) |
Var = *(int*) SwapEndian((void*)&Var, sizeof(int)) |
◆ SWAP_LONG
| #define SWAP_LONG |
( |
|
Var | ) |
Var = *(long*) SwapEndian((void*)&Var, sizeof(long)) |
◆ SWAP_SHORT
| #define SWAP_SHORT |
( |
|
Var | ) |
Var = *(short*) SwapEndian((void*)&Var, sizeof(short)) |
◆ SWAP_ULONG
| #define SWAP_ULONG |
( |
|
Var | ) |
Var = *(unsigned long*) SwapEndian((void*)&Var, sizeof(long)) |
◆ SWAP_USHORT
| #define SWAP_USHORT |
( |
|
Var | ) |
Var = *(unsigned short*)SwapEndian((void*)&Var, sizeof(short)) |
◆ IsLittleEndian()
◆ SwapEndian()
| EXPORT_DLL void* SwapEndian |
( |
void * |
Addr, |
|
|
const int |
Nb |
|
) |
| |