e.g.: If you want to read a 16 bit value on big-endian machine from an opened file containing little endian values, you would use:
value = MGUI_ReadLE16(rp);
int fd, len_header; ... if (read (fd, &len_header, sizeof (int)) == -1) goto error; #if MGUI_BYTEORDER == MGUI_BIG_ENDIAN /* If the native system is big endian, calling ArchSwap32 to * swap the bytes. */ len_header = ArchSwap32 (len_header); #endif ...
|
|
Swaps a 16-bit big endian integer to the native endianness. Definition at line 432 of file endianrw.h. |
|
|
Swaps a 32-bit big endian integer to the native endianness. Definition at line 434 of file endianrw.h. |
|
|
Swaps a 64-bit big endian integer to the native endianness. Definition at line 436 of file endianrw.h. |
|
|
Swaps a 16-bit little endian integer to the native endianness. Definition at line 426 of file endianrw.h. |
|
|
Swaps a 32-bit little endian integer to the native endianness. Definition at line 428 of file endianrw.h. |
|
|
Swaps a 64-bit little endian integer to the native endianness. Definition at line 430 of file endianrw.h. |
|
|
Reads a 16-bit big endian integer from a MG_RWops object. This function reads a 16-bit big endian integer from the data source pointed to by src, and return it in native format.
|
|
|
Reads a 32-bit big endian integer from a MG_RWops object. This function reads a 32-bit big endian integer from the data source pointed to by src, and return it in native format.
|
|
|
Reads a 64-bit big endian integer from a MG_RWops object. This function reads a 64-bit big endian integer from the data source pointed to by src, and return it in native format.
|
|
|
Reads a 16-bit little endian integer from a MG_RWops object. This function reads a 16-bit little endian integer from the data source pointed to by src, and return it in native format.
|
|
|
Reads a 16-bit little endian integer from a stdio FILE object. This function reads a 16-bit little endian integer from the stdio FILE object pointed to by src, and return it in native format.
|
|
|
Reads a 32-bit little endian integer from a MG_RWops object. This function reads a 32-bit little endian integer from the data source pointed to by src, and return it in native format.
|
|
|
Reads a 32-bit little endian integer from a stdio FILE object. This function reads a 32-bit little endian integer from the stdio FILE object pointed to by src, and return it in native format.
|
|
|
Reads a 64-bit little endian integer from a MG_RWops object. This function reads a 64-bit little endian integer from the data source pointed to by src, and return it in native format.
|
|
||||||||||||
|
Writes an 16-bit integer of native format to a MG_RWops object in big endianness. This function writes a 16-bit integer of native format to the data source pointed to by src in big endiannes.
|
|
||||||||||||
|
Writes an 32-bit integer of native format to a MG_RWops object in big endianness. This function writes a 32-bit integer of native format to the data source pointed to by src in big endiannes.
|
|
||||||||||||
|
Writes an 64-bit integer of native format to a MG_RWops object in big endianness. This function writes a 64-bit integer of native format to the data source pointed to by src in big endiannes.
|
|
||||||||||||
|
Writes an 16-bit integer of native format to a MG_RWops object in littlen endianness. This function writes a 16-bit integer of native format to the data source pointed to by src in littlen endiannes.
|
|
||||||||||||
|
Writes an 16-bit integer of native format to a stdio FILE object in littlen endianness. This function writes a 16-bit integer of native format to the stdio FILE object pointed to by src in littlen endiannes.
|
|
||||||||||||
|
Writes an 32-bit integer of native format to a MG_RWops object in littlen endianness. This function writes a 32-bit integer of native format to the data source pointed to by src in littlen endiannes.
|
|
||||||||||||
|
Writes an 32-bit integer of native format to a stdio FILE object in littlen endianness. This function writes a 32-bit integer of native format to the stdio FILE object pointed to by src in littlen endiannes.
|
|
||||||||||||
|
Writes an 64-bit integer of native format to a MG_RWops object in littlen endianness. This function writes a 64-bit integer of native format to the data source pointed to by src in littlen endiannes.
|
1.4.2