MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / SwapBytes16

Function SwapBytes16

MdePkg/Library/BaseLib/SwapBytes16.c:26–33  ·  view source on GitHub ↗

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. **/

Source from the content-addressed store, hash-verified

24
25**/
26UINT16
27EFIAPI
28SwapBytes16 (
29 IN UINT16 Value
30 )
31{
32 return (UINT16) ((Value<< 8) | (Value>> 8));
33}

Callers 13

StrToGuidFunction · 0.70
AsciiStrToGuidFunction · 0.70
SwapBytes32Function · 0.70
UefiScsiLib.cFile · 0.50
devprop_generate_stringFunction · 0.50
swab16Function · 0.50
ScsiDiskUnmapFunction · 0.50
UfsPeimRead10Function · 0.50
UsbBootReadWriteBlocksFunction · 0.50
NetbufChecksumFunction · 0.50
TlsReceiveOnePduFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected