A
как вариант применения
Size: a a a
A
AM
AM
AM
P
P
AM
P
AM
WS
BitConverter.IsLittleEndian
- минус один кейс )P
P
P
WS
private UInt16 swapOctetsUInt16(UInt16 toSwap)
{
Int32 tmp = 0;
tmp = toSwap >> 8;
tmp = tmp | ((toSwap & 0xff) << 8);
return (UInt16) tmp;
}
P
private UInt16 swapOctetsUInt16(UInt16 toSwap)
{
Int32 tmp = 0;
tmp = toSwap >> 8;
tmp = tmp | ((toSwap & 0xff) << 8);
return (UInt16) tmp;
}
WS
AM
WS
AM