rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/csharp

6 lines
149 B
Plaintext
Raw Normal View History

2019-10-21 08:18:17 +00:00
// reverse byte order (16-bit)
public static UInt16 ReverseBytes(UInt16 value)
{
return (UInt16)((value & 0xFFU) << 8 | (value & 0xFF00U) >> 8);
}