Example #1
0
        private byte[] FromInt(int val)
        {
            Bits bits = new Bits(val, 16);

            byte[] bytes    = bits.ToBytes();
            byte[] newBytes = new byte[2];
            newBytes[0] = bytes[1];
            newBytes[1] = bytes[0];
            return(newBytes);
        }
Example #2
0
 private byte[] FromInt(int val)
 {
     Bits bits = new Bits(val, 16);
     byte[] bytes = bits.ToBytes();
     byte[] newBytes = new byte[2];
     newBytes[0] = bytes[1];
     newBytes[1] = bytes[0];
     return newBytes;
 }
Example #3
0
 protected byte[] FromInt(int val)
 {
     Bits bits = new Bits(val, 16);
     return bits.ToBytes();
 }
        protected byte[] FromInt(int val)
        {
            Bits bits = new Bits(val, 16);

            return(bits.ToBytes());
        }