public interface IStreamMessageBuilder

Summary

Interface for constructing messages binary-compatible with QPid's "StreamMessage" wire encoding.

Method Summary

Name Summary
IStreamMessageBuilder WriteBool(bool value)

Writes a bool value into the message body being assembled.

IStreamMessageBuilder WriteByte(byte value)

Writes a byte value into the message body being assembled.

IStreamMessageBuilder WriteBytes(byte[] source, int offset, int count)

Writes a section of a byte array into the message body being assembled.

IStreamMessageBuilder WriteBytes(byte[] source)

Writes a byte array into the message body being assembled.

IStreamMessageBuilder WriteChar(char value)

Writes a char value into the message body being assembled.

IStreamMessageBuilder WriteDouble(double value)

Writes a double value into the message body being assembled.

IStreamMessageBuilder WriteInt16(short value)

Writes a short value into the message body being assembled.

IStreamMessageBuilder WriteInt32(int value)

Writes an int value into the message body being assembled.

IStreamMessageBuilder WriteInt64(long value)

Writes a long value into the message body being assembled.

IStreamMessageBuilder WriteObject(object value)

Writes an object value into the message body being assembled.

IStreamMessageBuilder WriteObjects(object[] values)

Writes objects using WriteObject(), one after the other. No length indicator is written. See also IStreamMessageReader.ReadObjects().

IStreamMessageBuilder WriteSingle(single value)

Writes a float value into the message body being assembled.

IStreamMessageBuilder WriteString(string value)

Writes a string value into the message body being assembled.

Method Detail

WriteBool

IStreamMessageBuilder WriteBool(bool value)

Return type IStreamMessageBuilder
Parameters
Name Type
value bool

Summary

Writes a bool value into the message body being assembled.

WriteByte

IStreamMessageBuilder WriteByte(byte value)

Return type IStreamMessageBuilder
Parameters
Name Type
value byte

Summary

Writes a byte value into the message body being assembled.

WriteBytes

IStreamMessageBuilder WriteBytes(byte[] source, int offset, int count)

Return type IStreamMessageBuilder
Parameters
Name Type
source byte[]
offset int
count int

Summary

Writes a section of a byte array into the message body being assembled.

WriteBytes

IStreamMessageBuilder WriteBytes(byte[] source)

Return type IStreamMessageBuilder
Parameters
Name Type
source byte[]

Summary

Writes a byte array into the message body being assembled.

WriteChar

IStreamMessageBuilder WriteChar(char value)

Return type IStreamMessageBuilder
Parameters
Name Type
value char

Summary

Writes a char value into the message body being assembled.

WriteDouble

IStreamMessageBuilder WriteDouble(double value)

Return type IStreamMessageBuilder
Parameters
Name Type
value double

Summary

Writes a double value into the message body being assembled.

WriteInt16

IStreamMessageBuilder WriteInt16(short value)

Return type IStreamMessageBuilder
Parameters
Name Type
value short

Summary

Writes a short value into the message body being assembled.

WriteInt32

IStreamMessageBuilder WriteInt32(int value)

Return type IStreamMessageBuilder
Parameters
Name Type
value int

Summary

Writes an int value into the message body being assembled.

WriteInt64

IStreamMessageBuilder WriteInt64(long value)

Return type IStreamMessageBuilder
Parameters
Name Type
value long

Summary

Writes a long value into the message body being assembled.

WriteObject

IStreamMessageBuilder WriteObject(object value)

Return type IStreamMessageBuilder
Parameters
Name Type
value object

Summary

Writes an object value into the message body being assembled.

Remarks

The only permitted types are bool, int, short, byte, char, long, float, double, byte[] and string.

WriteObjects

IStreamMessageBuilder WriteObjects(object[] values)

Return type IStreamMessageBuilder
Parameters
Name Type
values object[]

Summary

Writes objects using WriteObject(), one after the other. No length indicator is written. See also IStreamMessageReader.ReadObjects().

WriteSingle

IStreamMessageBuilder WriteSingle(single value)

Return type IStreamMessageBuilder
Parameters
Name Type
value single

Summary

Writes a float value into the message body being assembled.

WriteString

IStreamMessageBuilder WriteString(string value)

Return type IStreamMessageBuilder
Parameters
Name Type
value string

Summary

Writes a string value into the message body being assembled.