btlw

WORD WINAPI btlw
(
	WORD big
);

This function converts "big-endian" WORD values to their "little-endian" representation. It is similar to the htons function of the Windows™ API.

Parameters

Return values

Returns the converted value.

Remarks

In Intel™ and compatible processors, a value like 0x1234 is represented in memory as 0x3412. In MIDI files, they are in the correct order, or "big-endian" style, but when loaded into memory, their byte order becomes inverted to work in the "little-endian" platform. See BRELS_MIDI_HEADER and BRELS_TRACK_HEADER for examples of this behavior.


Further information

Released in November 19th, 2003
Updated in April 29th, 2004
Property of Breno de Lima Sarmento
Home page: http://www27.brinkster.com/brels
E-mail: [email protected]
ICQ: 78977999 ()