Apache.NMS.ActiveMQ.OpenWire.BaseDataStreamMarshaller.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 virtual void LooseUnmarshal(
            OpenWireFormat wireFormat,
            Object o,
            BinaryReader dataIn)
        {
        }

Usage Example

Beispiel #1
0
        public Object Unmarshal(BinaryReader dis)
        {
            // lets ignore the size of the packet
            if (!sizePrefixDisabled)
            {
                dis.ReadInt32();
            }

            // first byte is the type of the packet
            byte dataType = dis.ReadByte();

            if (dataType != NULL_TYPE)
            {
                BaseDataStreamMarshaller dsm = GetDataStreamMarshallerForType(dataType);

                Object data = dsm.CreateObject();

                if (tightEncodingEnabled)
                {
                    BooleanStream bs = new BooleanStream();
                    bs.Unmarshal(dis);
                    dsm.TightUnmarshal(this, data, dis, bs);
                    return(data);
                }
                else
                {
                    dsm.LooseUnmarshal(this, data, dis);
                    return(data);
                }
            }

            return(null);
        }
All Usage Examples Of Apache.NMS.ActiveMQ.OpenWire.BaseDataStreamMarshaller::LooseUnmarshal