Apache.NMS.ActiveMQ.OpenWire.OpenWireFormat.LooseUnmarshalNestedObject C# (CSharp) Method

LooseUnmarshalNestedObject() public method

public LooseUnmarshalNestedObject ( BinaryReader dis ) : DataStructure
dis System.IO.BinaryReader
return DataStructure
        public DataStructure LooseUnmarshalNestedObject(BinaryReader dis)
        {
            if(dis.ReadBoolean())
            {
                byte dataType = dis.ReadByte();

                BaseDataStreamMarshaller dsm = GetDataStreamMarshallerForType(dataType);
                DataStructure data = dsm.CreateObject();
                dsm.LooseUnmarshal(this, data, dis);
                return data;
            }

            return null;
        }

Usage Example

 protected virtual DataStructure LooseUnmarshalCachedObject(
     OpenWireFormat wireFormat,
     BinaryReader dataIn)
 {
     /*
      * if (wireFormat.isCacheEnabled()) {
      * if (bs.ReadBoolean()) {
      * short index = dataIndataIn.ReadInt16()Int16();
      * DataStructure value = wireFormat.UnmarshalNestedObject(dataIn, bs);
      * wireFormat.setInUnmarshallCache(index, value);
      * return value;
      * } else {
      * short index = dataIn.ReadInt16();
      * return wireFormat.getFromUnmarshallCache(index);
      * }
      * } else {
      * return wireFormat.UnmarshalNestedObject(dataIn, bs);
      * }
      */
     return(wireFormat.LooseUnmarshalNestedObject(dataIn));
 }
All Usage Examples Of Apache.NMS.ActiveMQ.OpenWire.OpenWireFormat::LooseUnmarshalNestedObject