Switches the endianess of a 16-bit integer. This function swaps the bytes in a 16-bit unsigned value to switch the value from little endian to big endian or vice versa. The byte swapped value is returned. @param Value A 16-bit unsigned value. @return The byte swapped Value. **/
| 24 | |
| 25 | **/ |
| 26 | UINT16 |
| 27 | EFIAPI |
| 28 | SwapBytes16 ( |
| 29 | IN UINT16 Value |
| 30 | ) |
| 31 | { |
| 32 | return (UINT16) ((Value<< 8) | (Value>> 8)); |
| 33 | } |
no outgoing calls
no test coverage detected