Exemple #1
0
        public void UnMarshal(MMStream stream)
        {
            entityId    = stream.ReadUInt64();
            adjustCount = stream.ReadUInt32();
            stream.ReadFixByteArray(ref stateData);



            //data = stream.ReadBytes();
        }
Exemple #2
0
        public void UnMarshal(MMStream stream)
        {
            entityID = stream.ReadUInt64();
            num      = stream.ReadUInt32();
            //data = stream.ReadBytes();

            if (num > 1024)
            {
                throw new ArgumentNullException("PropSyncClient UnMarshal");
            }

            stream.ReadFixByteArray(ref data);
        }
Exemple #3
0
        public void UnMarshal(MMStream stream)
        {
            num = stream.ReadInt32();

            if (num < aoi_data.totalLength)
            {
                aoi_data.SetUsedLength(num);
                for (int i = 0; i < num; i++)
                {
                    var aoiarr = aoi_data.getArray()[i];
                    stream.ReadFixByteArray(ref aoiarr);
                }
            }
        }
Exemple #4
0
        public void UnMarshal(MMStream stream)
        {
            num = stream.ReadUInt32();

            eids.Clear();

            eds.SetUsedLength((int)num);

            for (int i = 0; i < num; i++)
            {
                eids.Add(stream.ReadUInt64());

                //int blen = stream.ReadUInt16();

                var edsbytearr = eds.getArray()[i];
                if (edsbytearr == null)
                {
                    eds.getArray()[i] = new FixedLengthArray <byte>(2048);
                    edsbytearr        = eds.getArray()[i];
                }

                stream.ReadFixByteArray(ref edsbytearr);
            }
        }