Apache.NMS.ActiveMQ.OpenWire.V6.WireFormatInfoMarshaller.LooseUnmarshal C# (CSharp) Method

LooseUnmarshal() public method

public LooseUnmarshal ( OpenWireFormat wireFormat, Object o, BinaryReader dataIn ) : void
wireFormat OpenWireFormat
o Object
dataIn System.IO.BinaryReader
return void
        public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn)
        {
            base.LooseUnmarshal(wireFormat, o, dataIn);

            WireFormatInfo info = (WireFormatInfo)o;

            info.BeforeUnmarshall(wireFormat);

            info.Magic = ReadBytes(dataIn, 8);
            info.Version = dataIn.ReadInt32();
            info.MarshalledProperties = ReadBytes(dataIn, dataIn.ReadBoolean());

            info.AfterUnmarshall(wireFormat);
        }