Ejemplo n.º 1
0
        //************************  Прочесть uint  *******************************
        public uint ReadUInt()
        {
            UINTUnion un = new UINTUnion();

            un.b1 = (byte)fs.ReadByte();
            un.b2 = (byte)fs.ReadByte();
            un.b3 = (byte)fs.ReadByte();
            un.b4 = (byte)fs.ReadByte();
            return(un.i);
        }
Ejemplo n.º 2
0
        //************************  Сохранить uint  ******************************
        public void WriteUInt(uint num)
        {
            UINTUnion un = new UINTUnion();

            un.i = num;
            fs.WriteByte(un.b1);
            fs.WriteByte(un.b2);
            fs.WriteByte(un.b3);
            fs.WriteByte(un.b4);
        }