Beispiel #1
0
        public static uint SetByte3(uint value, int i)
        {
            BitSetter b = new BitSetter(value);

            b.byte3 = (byte)i;
            return(b.intVal);
        }
Beispiel #2
0
        public static uint SetBytes(int byte0, int byte1, int byte2, int byte3)
        {
            BitSetter b = new BitSetter(0);

            b.byte0 = (byte)byte0;
            b.byte1 = (byte)byte1;
            b.byte2 = (byte)byte2;
            b.byte3 = (byte)byte3;
            return(b.intVal);
        }