Class BaseDataStreamMarshaller
- Namespace
- Apache.NMS.ActiveMQ.OpenWire
- Assembly
- Apache.NMS.ActiveMQ.dll
public abstract class BaseDataStreamMarshaller
- Inheritance
-
BaseDataStreamMarshaller
- Derived
-
- Inherited Members
-
Constructors
BaseDataStreamMarshaller()
protected BaseDataStreamMarshaller()
Methods
CreateObject()
public abstract DataStructure CreateObject()
Returns
- DataStructure
GetDataStructureType()
public abstract byte GetDataStructureType()
Returns
- byte
public virtual void LooseMarshal(OpenWireFormat wireFormat, object o, BinaryWriter dataOut)
Parameters
wireFormat
OpenWireFormat
o
object
dataOut
BinaryWriter
protected void LooseMarshalBrokerError(OpenWireFormat wireFormat, BrokerError o, BinaryWriter dataOut)
Parameters
wireFormat
OpenWireFormat
o
BrokerError
dataOut
BinaryWriter
protected virtual void LooseMarshalCachedObject(OpenWireFormat wireFormat, DataStructure o, BinaryWriter dataOut)
Parameters
wireFormat
OpenWireFormat
o
DataStructure
dataOut
BinaryWriter
public virtual void LooseMarshalLong(OpenWireFormat wireFormat, long o, BinaryWriter dataOut)
Parameters
wireFormat
OpenWireFormat
o
long
dataOut
BinaryWriter
protected virtual void LooseMarshalNestedObject(OpenWireFormat wireFormat, DataStructure o, BinaryWriter dataOut)
Parameters
wireFormat
OpenWireFormat
o
DataStructure
dataOut
BinaryWriter
protected virtual void LooseMarshalObjectArray(OpenWireFormat wireFormat, DataStructure[] objects, BinaryWriter dataOut)
Parameters
wireFormat
OpenWireFormat
objects
DataStructure[]
dataOut
BinaryWriter
LooseMarshalString(string, BinaryWriter)
public static void LooseMarshalString(string value, BinaryWriter dataOut)
Parameters
value
string
dataOut
BinaryWriter
public virtual void LooseUnmarshal(OpenWireFormat wireFormat, object o, BinaryReader dataIn)
Parameters
wireFormat
OpenWireFormat
o
object
dataIn
BinaryReader
protected virtual BrokerError LooseUnmarshalBrokerError(OpenWireFormat wireFormat, BinaryReader dataIn)
Parameters
wireFormat
OpenWireFormat
dataIn
BinaryReader
Returns
- BrokerError
protected virtual DataStructure LooseUnmarshalCachedObject(OpenWireFormat wireFormat, BinaryReader dataIn)
Parameters
wireFormat
OpenWireFormat
dataIn
BinaryReader
Returns
- DataStructure
public virtual long LooseUnmarshalLong(OpenWireFormat wireFormat, BinaryReader dataIn)
Parameters
wireFormat
OpenWireFormat
dataIn
BinaryReader
Returns
- long
protected virtual DataStructure LooseUnmarshalNestedObject(OpenWireFormat wireFormat, BinaryReader dataIn)
Parameters
wireFormat
OpenWireFormat
dataIn
BinaryReader
Returns
- DataStructure
LooseUnmarshalString(BinaryReader)
protected virtual string LooseUnmarshalString(BinaryReader dataIn)
Parameters
dataIn
BinaryReader
Returns
- string
ReadAsciiString(BinaryReader)
protected virtual string ReadAsciiString(BinaryReader dataIn)
Parameters
dataIn
BinaryReader
Returns
- string
ReadBytes(BinaryReader)
protected virtual byte[] ReadBytes(BinaryReader dataIn)
Parameters
dataIn
BinaryReader
Returns
- byte[]
ReadBytes(BinaryReader, bool)
protected virtual byte[] ReadBytes(BinaryReader dataIn, bool flag)
Parameters
dataIn
BinaryReader
flag
bool
Returns
- byte[]
ReadBytes(BinaryReader, int)
protected virtual byte[] ReadBytes(BinaryReader dataIn, int size)
Parameters
dataIn
BinaryReader
size
int
Returns
- byte[]
public virtual int TightMarshal1(OpenWireFormat wireFormat, object o, BooleanStream bs)
Parameters
wireFormat
OpenWireFormat
o
object
bs
BooleanStream
Returns
- int
public virtual void TightMarshal2(OpenWireFormat wireFormat, object o, BinaryWriter dataOut, BooleanStream bs)
Parameters
wireFormat
OpenWireFormat
o
object
dataOut
BinaryWriter
bs
BooleanStream
protected int TightMarshalBrokerError1(OpenWireFormat wireFormat, BrokerError o, BooleanStream bs)
Parameters
wireFormat
OpenWireFormat
o
BrokerError
bs
BooleanStream
Returns
- int
protected void TightMarshalBrokerError2(OpenWireFormat wireFormat, BrokerError o, BinaryWriter dataOut, BooleanStream bs)
Parameters
wireFormat
OpenWireFormat
o
BrokerError
dataOut
BinaryWriter
bs
BooleanStream
protected virtual int TightMarshalCachedObject1(OpenWireFormat wireFormat, DataStructure o, BooleanStream bs)
Parameters
wireFormat
OpenWireFormat
o
DataStructure
bs
BooleanStream
Returns
- int
protected virtual void TightMarshalCachedObject2(OpenWireFormat wireFormat, DataStructure o, BinaryWriter dataOut, BooleanStream bs)
Parameters
wireFormat
OpenWireFormat
o
DataStructure
dataOut
BinaryWriter
bs
BooleanStream
public virtual int TightMarshalLong1(OpenWireFormat wireFormat, long o, BooleanStream bs)
Parameters
wireFormat
OpenWireFormat
o
long
bs
BooleanStream
Returns
- int
public virtual void TightMarshalLong2(OpenWireFormat wireFormat, long o, BinaryWriter dataOut, BooleanStream bs)
Parameters
wireFormat
OpenWireFormat
o
long
dataOut
BinaryWriter
bs
BooleanStream
protected virtual int TightMarshalNestedObject1(OpenWireFormat wireFormat, DataStructure o, BooleanStream bs)
Parameters
wireFormat
OpenWireFormat
o
DataStructure
bs
BooleanStream
Returns
- int
protected virtual void TightMarshalNestedObject2(OpenWireFormat wireFormat, DataStructure o, BinaryWriter dataOut, BooleanStream bs)
Parameters
wireFormat
OpenWireFormat
o
DataStructure
dataOut
BinaryWriter
bs
BooleanStream
protected virtual int TightMarshalObjectArray1(OpenWireFormat wireFormat, DataStructure[] objects, BooleanStream bs)
Parameters
wireFormat
OpenWireFormat
objects
DataStructure[]
bs
BooleanStream
Returns
- int
protected virtual void TightMarshalObjectArray2(OpenWireFormat wireFormat, DataStructure[] objects, BinaryWriter dataOut, BooleanStream bs)
Parameters
wireFormat
OpenWireFormat
objects
DataStructure[]
dataOut
BinaryWriter
bs
BooleanStream
TightMarshalString1(string, BooleanStream)
protected virtual int TightMarshalString1(string value, BooleanStream bs)
Parameters
value
string
bs
BooleanStream
Returns
- int
TightMarshalString2(string, BinaryWriter, BooleanStream)
public static void TightMarshalString2(string value, BinaryWriter dataOut, BooleanStream bs)
Parameters
value
string
dataOut
BinaryWriter
bs
BooleanStream
public virtual void TightUnmarshal(OpenWireFormat wireFormat, object o, BinaryReader dataIn, BooleanStream bs)
Parameters
wireFormat
OpenWireFormat
o
object
dataIn
BinaryReader
bs
BooleanStream
protected virtual BrokerError TightUnmarshalBrokerError(OpenWireFormat wireFormat, BinaryReader dataIn, BooleanStream bs)
Parameters
wireFormat
OpenWireFormat
dataIn
BinaryReader
bs
BooleanStream
Returns
- BrokerError
protected virtual DataStructure TightUnmarshalCachedObject(OpenWireFormat wireFormat, BinaryReader dataIn, BooleanStream bs)
Parameters
wireFormat
OpenWireFormat
dataIn
BinaryReader
bs
BooleanStream
Returns
- DataStructure
public virtual long TightUnmarshalLong(OpenWireFormat wireFormat, BinaryReader dataIn, BooleanStream bs)
Parameters
wireFormat
OpenWireFormat
dataIn
BinaryReader
bs
BooleanStream
Returns
- long
protected virtual DataStructure TightUnmarshalNestedObject(OpenWireFormat wireFormat, BinaryReader dataIn, BooleanStream bs)
Parameters
wireFormat
OpenWireFormat
dataIn
BinaryReader
bs
BooleanStream
Returns
- DataStructure
TightUnmarshalString(BinaryReader, BooleanStream)
protected virtual string TightUnmarshalString(BinaryReader dataIn, BooleanStream bs)
Parameters
dataIn
BinaryReader
bs
BooleanStream
Returns
- string
ToHexFromBytes(byte[])
public static string ToHexFromBytes(byte[] data)
Parameters
data
byte[]
Returns
- string
ToString(MessageId)
public static string ToString(MessageId id)
Parameters
id
MessageId
Returns
- string
ToString(ProducerId)
public static string ToString(ProducerId id)
Parameters
id
ProducerId
Returns
- string
ToString(TransactionId)
public static string ToString(TransactionId txnId)
Parameters
txnId
TransactionId
Returns
- string
WriteBytes(byte[], BinaryWriter)
protected virtual void WriteBytes(byte[] command, BinaryWriter dataOut)
Parameters
command
byte[]
dataOut
BinaryWriter