SwapShort Function | |
Exchange the right and left halves of a short integer.
Namespace:
XSharp.Core
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax FUNCTION SwapShort(
siSwap AS SHORT
) AS SHORT
public static short SwapShort(
short siSwap
)
Request Example
View SourceParameters
- siSwap
- Type: Short
The short integer whose bytes you want to swap.
Return Value
Type:
Short
The swapped short integer.
Remarks
SwapShort() swaps the right half of a short integer with the left half of a short integer and returns the result.
The sign may not be preserved after the swap.
Examples
This example uses SwapShort():
See Also