Example #1
0
        void Warmup()
        {
            var msgs = new MessageBase[] { new S16Message(), new ComplexMessage(), new IntArrayMessage() };

            IMemStreamTest t;

            t = new MemStreamTest(m_serializer);
            t.Prepare(msgs.Length);
            t.Serialize(msgs);
            t.Deserialize();

            if (Program.RunProtoBufTests)
            {
                t = new PBMemStreamTest();
                t.Prepare(msgs.Length);
                t.Serialize(msgs);
                t.Deserialize();
            }
        }
Example #2
0
        void Warmup()
        {
            var msgs = new MessageBase[] { new S16Message(), new ComplexMessage(), new IntArrayMessage() };

            IMemStreamTest t;

            t = new MemStreamTest(m_serializer);
            t.Prepare(msgs.Length);
            t.Serialize(msgs);
            t.Deserialize();

            if (Program.RunProtoBufTests)
            {
                t = new PBMemStreamTest();
                t.Prepare(msgs.Length);
                t.Serialize(msgs);
                t.Deserialize();
            }
        }