Esempio n. 1
0
        public void Deserialize(MemoryEndianBinaryReader reader)
        {
            FieldMark fm = new FieldMark(1);

            reader.Read(fm.getData());
            if (fm.ReadMark())
            {
                int __1__ = SerializationUtil.ReadVariableLength(reader);
                byteArray = new sbyte[__1__];
                for (int i = 0; i < __1__; i++)
                {
                    byteArray[i] = reader.ReadByte();
                }
            }
            if (fm.ReadMark())
            {
                int __2__ = SerializationUtil.ReadVariableLength(reader);
                shortArray = new Int16[__2__];
                for (int i = 0; i < __2__; i++)
                {
                    shortArray[i] = reader.ReadInt16();
                }
            }
            if (fm.ReadMark())
            {
                int __3__ = SerializationUtil.ReadVariableLength(reader);
                intArray = new Int32[__3__];
                for (int i = 0; i < __3__; i++)
                {
                    intArray[i] = reader.ReadInt32();
                }
            }
            if (fm.ReadMark())
            {
                int __4__ = SerializationUtil.ReadVariableLength(reader);
                longArray = new Int64[__4__];
                for (int i = 0; i < __4__; i++)
                {
                    longArray[i] = reader.ReadInt64();
                }
            }
            if (fm.ReadMark())
            {
                int __5__ = SerializationUtil.ReadVariableLength(reader);
                floatArray = new single[__5__];
                for (int i = 0; i < __5__; i++)
                {
                    floatArray[i] = reader.ReadSingle();
                }
            }
            if (fm.ReadMark())
            {
                int __6__ = SerializationUtil.ReadVariableLength(reader);
                doubleArray = new double[__6__];
                for (int i = 0; i < __6__; i++)
                {
                    doubleArray[i] = reader.ReadDouble();
                }
            }
        }