Пример #1
0
            unsafe public float ReadFloat()
            {
                float u = 0;

                BufferBase.GetNetValue((byte *)&u, mData, mIndex, sizeof(float));
                mIndex += sizeof(float);
                return(u);
            }
Пример #2
0
            unsafe public int ReadInt()
            {
                int u = 0;

                BufferBase.GetNetValue((byte *)&u, mData, mIndex, sizeof(int));
                mIndex += sizeof(int);
                return(u);
            }
Пример #3
0
            unsafe public long ReadLong()
            {
                long u = 0;

                BufferBase.GetNetValue((byte *)&u, mData, mIndex, sizeof(long));
                mIndex += sizeof(long);
                return(u);
            }
Пример #4
0
            unsafe public short ReadShort()
            {
                short u = 0;

                BufferBase.GetNetValue((byte *)&u, mData, mIndex, sizeof(short));
                mIndex += sizeof(short);
                return(u);
            }