rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/csharp
2019-10-21 10:18:17 +02:00

6 lines
149 B
Plaintext

// reverse byte order (16-bit)
public static UInt16 ReverseBytes(UInt16 value)
{
return (UInt16)((value & 0xFFU) << 8 | (value & 0xFF00U) >> 8);
}