public override void BeforeMarshall(OpenWireFormat wireFormat) { MarshalledProperties = null; if (properties != null) { MarshalledProperties = properties.Marshal(); } }
public void TestMarshalled() { PrimitiveMap map = CreatePrimitiveMap(); byte[] data = map.Marshal(); map = PrimitiveMap.Unmarshal(data); AssertPrimitiveMap(map); }
public void TestMarshalled() { PrimitiveMap map = CreatePrimitiveMap(); Console.WriteLine("data: " + map); byte[] data = map.Marshal(); map = PrimitiveMap.Unmarshal(data); Console.WriteLine("data: " + map); AssertPrimitiveMap(map); }
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")); }
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); }