mhe.Protocol.ConvertToBytes C# (CSharp) Method

ConvertToBytes() private static method

private static ConvertToBytes ( int n ) : byte[]
n int
return byte[]
        private static byte[] ConvertToBytes(int n)
        {
            byte[] b = new byte[4];
            b[0] = (byte)(n >> 24);
            b[1] = (byte)(n >> 16);
            b[2] = (byte)(n >> 8);
            b[3] = (byte)(n & 0xff);
            return b;
        }