public class BytesMessageReader

Summary

Analyzes AMQP Basic-class messages binary-compatible with QPid's "BytesMessage" wire encoding.

Field Summary

Flags Type Name Summary
public initonly static string MimeType

MIME type associated with QPid BytesMessages.

Constructor Summary

Flags Name Summary
public BytesMessageReader(IBasicProperties properties, byte[] payload)

Construct an instance for reading. See superclass.

Method Summary

Flags Name Summary
public virtual final int Read(byte[] target, int offset, int count)

Reads a given number ("count") of bytes from the message body, placing them into "target", starting at "offset".

public virtual final byte ReadByte()

Reads a byte from the message body.

public virtual final byte[] ReadBytes(int count)

Reads a given number of bytes from the message body.

public virtual final char ReadChar()

Reads a char from the message body.

public virtual final double ReadDouble()

Reads a double from the message body.

public virtual final short ReadInt16()

Reads a short from the message body.

public virtual final int ReadInt32()

Reads an int from the message body.

public virtual final long ReadInt64()

Reads a long from the message body.

public virtual final single ReadSingle()

Reads a float from the message body.

public virtual final string ReadString()

Reads a string from the message body.

Field Detail

public initonly static string MimeType

Summary

MIME type associated with QPid BytesMessages.

Constructor Detail

BytesMessageReader

public BytesMessageReader(IBasicProperties properties, byte[] payload)

Parameters
Name Type
properties IBasicProperties
payload byte[]

Summary

Construct an instance for reading. See superclass.

Method Detail

Read

public virtual final int Read(byte[] target, int offset, int count)

Flags public virtual final
Return type int
Parameters
Name Type
target byte[]
offset int
count int

Summary

Reads a given number ("count") of bytes from the message body, placing them into "target", starting at "offset".

ReadByte

public virtual final byte ReadByte()

Flags public virtual final
Return type byte

Summary

Reads a byte from the message body.

ReadBytes

public virtual final byte[] ReadBytes(int count)

Flags public virtual final
Return type byte[]
Parameters
Name Type
count int

Summary

Reads a given number of bytes from the message body.

ReadChar

public virtual final char ReadChar()

Flags public virtual final
Return type char

Summary

Reads a char from the message body.

ReadDouble

public virtual final double ReadDouble()

Flags public virtual final
Return type double

Summary

Reads a double from the message body.

ReadInt16

public virtual final short ReadInt16()

Flags public virtual final
Return type short

Summary

Reads a short from the message body.

ReadInt32

public virtual final int ReadInt32()

Flags public virtual final
Return type int

Summary

Reads an int from the message body.

ReadInt64

public virtual final long ReadInt64()

Flags public virtual final
Return type long

Summary

Reads a long from the message body.

ReadSingle

public virtual final single ReadSingle()

Flags public virtual final
Return type single

Summary

Reads a float from the message body.

ReadString

public virtual final string ReadString()

Flags public virtual final
Return type string

Summary

Reads a string from the message body.