Ejemplo n.º 1
0
 public override void BeforeMarshall(OpenWireFormat wireFormat)
 {
     MarshalledProperties = null;
     if (properties != null)
     {
         MarshalledProperties = properties.Marshal();
     }
 }
Ejemplo n.º 2
0
        public void TestMarshalled()
        {
            PrimitiveMap map = CreatePrimitiveMap();

            byte[] data = map.Marshal();
            map = PrimitiveMap.Unmarshal(data);
            AssertPrimitiveMap(map);
        }
Ejemplo n.º 3
0
        public void TestMarshalled()
        {
            PrimitiveMap map = CreatePrimitiveMap();

            Console.WriteLine("data: " + map);
            byte[] data = map.Marshal();
            map = PrimitiveMap.Unmarshal(data);
            Console.WriteLine("data: " + map);
            AssertPrimitiveMap(map);
        }
Ejemplo n.º 4
0
        public void TestMarshalledWithBigString()
        {
            PrimitiveMap map  = CreatePrimitiveMap();
            String       test = new String('a', 65538);

            map.SetString("BIG_STRING", test);
            byte[] data = map.Marshal();
            map = PrimitiveMap.Unmarshal(data);
            AssertPrimitiveMap(map);
            Assert.AreEqual(test, map.GetString("BIG_STRING"));
        }
Ejemplo n.º 5
0
        public override void BeforeMarshall(OpenWireFormat wireFormat)
        {
            if (body == null)
            {
                Content = null;
            }
            else
            {
                Content = body.Marshal();
            }

            //Console.WriteLine("BeforeMarshalling, content is: " + Content);

            base.BeforeMarshall(wireFormat);
        }
        public override void BeforeMarshall(OpenWireFormat wireFormat)
        {
            if (body == null)
            {
                Content = null;
            }
            else
            {
                Content = body.Marshal();
            }

            Tracer.Debug("BeforeMarshalling, content is: " + Content);

            base.BeforeMarshall(wireFormat);
        }