Wiki Page Content

Differences between revisions 5 and 6
Revision 5 as of 2010-07-01 06:16:46
Size: 763
Editor: SheenaSmith
Comment: update content (from Sam)
Revision 6 as of 2010-07-01 06:30:17
Size: 1078
Editor: SheenaSmith
Comment: update content (from Sam)
Deletions are marked like this. Additions are marked like this.
Line 20: Line 20:
SDL byte order corresponds to the byte order used by the processor type it was compiled for.
 * SDL byte order is SDL_LIL_ENDIAN for x86, x64, and similar systems that use the little endian byte order.
 * SDL byte order is SDL_BIG_ENDIAN for Mac, PowerPC, and similar systems that use the big endian byte order.

DRAFT

Byte Order and Byte Swapping

Include File(s): SDL_endian.h

Introduction

This category contains functions for reading and writing endian-specific values.

Endianness comes in two forms - big and little.

  • SDL_LIL_ENDIAN means byte order is 1234, where the smaller (little) numbered position comes first
  • SDL_BIG_ENDIAN means byte order is 4321, where the larger (big) numbered position comes first

SDL byte order corresponds to the byte order used by the processor type it was compiled for.

  • SDL byte order is SDL_LIL_ENDIAN for x86, x64, and similar systems that use the little endian byte order.
  • SDL byte order is SDL_BIG_ENDIAN for Mac, PowerPC, and similar systems that use the big endian byte order.

Functions


CategoryCategory

None: CategoryEndian (last edited 2017-02-19 20:43:49 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit