Apache.NMS.ActiveMQ.OpenWire.BaseDataStreamMarshaller.TightMarshal2 C# (CSharp) Method

TightMarshal2() public method

public TightMarshal2 ( OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs ) : void
wireFormat OpenWireFormat
o Object
dataOut System.IO.BinaryWriter
bs BooleanStream
return void
        public virtual void TightMarshal2(
            OpenWireFormat wireFormat,
            Object o,
            BinaryWriter dataOut,
            BooleanStream bs)
        {
        }

Usage Example

Beispiel #1
0
        public void TightMarshalNestedObject2(DataStructure o, BinaryWriter ds, BooleanStream bs)
        {
            if (!bs.ReadBoolean())
            {
                return;
            }

            byte type = o.GetDataStructureType();

            ds.Write(type);

            if (o.IsMarshallAware() && bs.ReadBoolean())
            {
                MarshallAware ma       = (MarshallAware)o;
                byte[]        sequence = ma.GetMarshalledForm(this);
                ds.Write(sequence, 0, sequence.Length);
            }
            else
            {
                BaseDataStreamMarshaller dsm = (BaseDataStreamMarshaller)dataMarshallers[type & 0xFF];
                if (dsm == null)
                {
                    throw new IOException("Unknown data type: " + type);
                }
                dsm.TightMarshal2(this, o, ds, bs);
            }
        }
All Usage Examples Of Apache.NMS.ActiveMQ.OpenWire.BaseDataStreamMarshaller::TightMarshal2