Table of Contents

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

LooseMarshal(OpenWireFormat, object, BinaryWriter)

public virtual void LooseMarshal(OpenWireFormat wireFormat, object o, BinaryWriter dataOut)

Parameters

wireFormat OpenWireFormat
o object
dataOut BinaryWriter

LooseMarshalBrokerError(OpenWireFormat, BrokerError, BinaryWriter)

protected void LooseMarshalBrokerError(OpenWireFormat wireFormat, BrokerError o, BinaryWriter dataOut)

Parameters

wireFormat OpenWireFormat
o BrokerError
dataOut BinaryWriter

LooseMarshalCachedObject(OpenWireFormat, DataStructure, BinaryWriter)

protected virtual void LooseMarshalCachedObject(OpenWireFormat wireFormat, DataStructure o, BinaryWriter dataOut)

Parameters

wireFormat OpenWireFormat
o DataStructure
dataOut BinaryWriter

LooseMarshalLong(OpenWireFormat, long, BinaryWriter)

public virtual void LooseMarshalLong(OpenWireFormat wireFormat, long o, BinaryWriter dataOut)

Parameters

wireFormat OpenWireFormat
o long
dataOut BinaryWriter

LooseMarshalNestedObject(OpenWireFormat, DataStructure, BinaryWriter)

protected virtual void LooseMarshalNestedObject(OpenWireFormat wireFormat, DataStructure o, BinaryWriter dataOut)

Parameters

wireFormat OpenWireFormat
o DataStructure
dataOut BinaryWriter

LooseMarshalObjectArray(OpenWireFormat, DataStructure[], 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

LooseUnmarshal(OpenWireFormat, object, BinaryReader)

public virtual void LooseUnmarshal(OpenWireFormat wireFormat, object o, BinaryReader dataIn)

Parameters

wireFormat OpenWireFormat
o object
dataIn BinaryReader

LooseUnmarshalBrokerError(OpenWireFormat, BinaryReader)

protected virtual BrokerError LooseUnmarshalBrokerError(OpenWireFormat wireFormat, BinaryReader dataIn)

Parameters

wireFormat OpenWireFormat
dataIn BinaryReader

Returns

BrokerError

LooseUnmarshalCachedObject(OpenWireFormat, BinaryReader)

protected virtual DataStructure LooseUnmarshalCachedObject(OpenWireFormat wireFormat, BinaryReader dataIn)

Parameters

wireFormat OpenWireFormat
dataIn BinaryReader

Returns

DataStructure

LooseUnmarshalLong(OpenWireFormat, BinaryReader)

public virtual long LooseUnmarshalLong(OpenWireFormat wireFormat, BinaryReader dataIn)

Parameters

wireFormat OpenWireFormat
dataIn BinaryReader

Returns

long

LooseUnmarshalNestedObject(OpenWireFormat, BinaryReader)

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[]

TightMarshal1(OpenWireFormat, object, BooleanStream)

public virtual int TightMarshal1(OpenWireFormat wireFormat, object o, BooleanStream bs)

Parameters

wireFormat OpenWireFormat
o object
bs BooleanStream

Returns

int

TightMarshal2(OpenWireFormat, object, BinaryWriter, BooleanStream)

public virtual void TightMarshal2(OpenWireFormat wireFormat, object o, BinaryWriter dataOut, BooleanStream bs)

Parameters

wireFormat OpenWireFormat
o object
dataOut BinaryWriter
bs BooleanStream

TightMarshalBrokerError1(OpenWireFormat, BrokerError, BooleanStream)

protected int TightMarshalBrokerError1(OpenWireFormat wireFormat, BrokerError o, BooleanStream bs)

Parameters

wireFormat OpenWireFormat
o BrokerError
bs BooleanStream

Returns

int

TightMarshalBrokerError2(OpenWireFormat, BrokerError, BinaryWriter, BooleanStream)

protected void TightMarshalBrokerError2(OpenWireFormat wireFormat, BrokerError o, BinaryWriter dataOut, BooleanStream bs)

Parameters

wireFormat OpenWireFormat
o BrokerError
dataOut BinaryWriter
bs BooleanStream

TightMarshalCachedObject1(OpenWireFormat, DataStructure, BooleanStream)

protected virtual int TightMarshalCachedObject1(OpenWireFormat wireFormat, DataStructure o, BooleanStream bs)

Parameters

wireFormat OpenWireFormat
o DataStructure
bs BooleanStream

Returns

int

TightMarshalCachedObject2(OpenWireFormat, DataStructure, BinaryWriter, BooleanStream)

protected virtual void TightMarshalCachedObject2(OpenWireFormat wireFormat, DataStructure o, BinaryWriter dataOut, BooleanStream bs)

Parameters

wireFormat OpenWireFormat
o DataStructure
dataOut BinaryWriter
bs BooleanStream

TightMarshalLong1(OpenWireFormat, long, BooleanStream)

public virtual int TightMarshalLong1(OpenWireFormat wireFormat, long o, BooleanStream bs)

Parameters

wireFormat OpenWireFormat
o long
bs BooleanStream

Returns

int

TightMarshalLong2(OpenWireFormat, long, BinaryWriter, BooleanStream)

public virtual void TightMarshalLong2(OpenWireFormat wireFormat, long o, BinaryWriter dataOut, BooleanStream bs)

Parameters

wireFormat OpenWireFormat
o long
dataOut BinaryWriter
bs BooleanStream

TightMarshalNestedObject1(OpenWireFormat, DataStructure, BooleanStream)

protected virtual int TightMarshalNestedObject1(OpenWireFormat wireFormat, DataStructure o, BooleanStream bs)

Parameters

wireFormat OpenWireFormat
o DataStructure
bs BooleanStream

Returns

int

TightMarshalNestedObject2(OpenWireFormat, DataStructure, BinaryWriter, BooleanStream)

protected virtual void TightMarshalNestedObject2(OpenWireFormat wireFormat, DataStructure o, BinaryWriter dataOut, BooleanStream bs)

Parameters

wireFormat OpenWireFormat
o DataStructure
dataOut BinaryWriter
bs BooleanStream

TightMarshalObjectArray1(OpenWireFormat, DataStructure[], BooleanStream)

protected virtual int TightMarshalObjectArray1(OpenWireFormat wireFormat, DataStructure[] objects, BooleanStream bs)

Parameters

wireFormat OpenWireFormat
objects DataStructure[]
bs BooleanStream

Returns

int

TightMarshalObjectArray2(OpenWireFormat, DataStructure[], BinaryWriter, BooleanStream)

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

TightUnmarshal(OpenWireFormat, object, BinaryReader, BooleanStream)

public virtual void TightUnmarshal(OpenWireFormat wireFormat, object o, BinaryReader dataIn, BooleanStream bs)

Parameters

wireFormat OpenWireFormat
o object
dataIn BinaryReader
bs BooleanStream

TightUnmarshalBrokerError(OpenWireFormat, BinaryReader, BooleanStream)

protected virtual BrokerError TightUnmarshalBrokerError(OpenWireFormat wireFormat, BinaryReader dataIn, BooleanStream bs)

Parameters

wireFormat OpenWireFormat
dataIn BinaryReader
bs BooleanStream

Returns

BrokerError

TightUnmarshalCachedObject(OpenWireFormat, BinaryReader, BooleanStream)

protected virtual DataStructure TightUnmarshalCachedObject(OpenWireFormat wireFormat, BinaryReader dataIn, BooleanStream bs)

Parameters

wireFormat OpenWireFormat
dataIn BinaryReader
bs BooleanStream

Returns

DataStructure

TightUnmarshalLong(OpenWireFormat, BinaryReader, BooleanStream)

public virtual long TightUnmarshalLong(OpenWireFormat wireFormat, BinaryReader dataIn, BooleanStream bs)

Parameters

wireFormat OpenWireFormat
dataIn BinaryReader
bs BooleanStream

Returns

long

TightUnmarshalNestedObject(OpenWireFormat, BinaryReader, BooleanStream)

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