unsafe public float ReadFloat() { float u = 0; BufferBase.GetNetValue((byte *)&u, mData, mIndex, sizeof(float)); mIndex += sizeof(float); return(u); }
unsafe public int ReadInt() { int u = 0; BufferBase.GetNetValue((byte *)&u, mData, mIndex, sizeof(int)); mIndex += sizeof(int); return(u); }
unsafe public long ReadLong() { long u = 0; BufferBase.GetNetValue((byte *)&u, mData, mIndex, sizeof(long)); mIndex += sizeof(long); return(u); }
unsafe public short ReadShort() { short u = 0; BufferBase.GetNetValue((byte *)&u, mData, mIndex, sizeof(short)); mIndex += sizeof(short); return(u); }