public class BasicMessageReader

Summary

Framework for analyzing various types of AMQP Basic-class application messages.

Property Summary

Flags Type Name Summary
public virtual final byte[] BodyBytes (r)

Implement IMessageReader.BodyBytes

public virtual final Stream BodyStream (r)

Implement IMessageReader.BodyStream

public virtual final IDictionary<string,object> Headers (r)

Implement IMessageReader.Headers

public IBasicProperties Properties (r)

Retrieve the IBasicProperties associated with this instance.

public NetworkBinaryReader Reader (r)

Retrieve this instance's NetworkBinaryReader reading from BodyBytes.

Constructor Summary

Flags Name Summary
public BasicMessageReader(IBasicProperties properties, byte[] body)

Construct an instance ready for reading.

Method Summary

Flags Name Summary
public virtual final int RawRead(byte[] target, int offset, int length)

Implement IMessageReader.RawRead

public virtual final int RawRead()

Implement IMessageReader.RawRead

Property Detail

public virtual final byte[] BodyBytes (r)

Summary

Implement IMessageReader.BodyBytes

public virtual final Stream BodyStream (r)

Summary

Implement IMessageReader.BodyStream

public virtual final IDictionary<string,object> Headers (r)

Summary

Implement IMessageReader.Headers

public IBasicProperties Properties (r)

Summary

Retrieve the IBasicProperties associated with this instance.

public NetworkBinaryReader Reader (r)

Summary

Retrieve this instance's NetworkBinaryReader reading from BodyBytes.

Remarks

If no NetworkBinaryReader instance exists, one is created, pointing at the beginning of the body. If one already exists, the existing instance is returned. The instance is not reset.

Constructor Detail

BasicMessageReader

public BasicMessageReader(IBasicProperties properties, byte[] body)

Parameters
Name Type
properties IBasicProperties
body byte[]

Summary

Construct an instance ready for reading.

Method Detail

RawRead

public virtual final int RawRead(byte[] target, int offset, int length)

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

Summary

Implement IMessageReader.RawRead

RawRead

public virtual final int RawRead()

Flags public virtual final
Return type int

Summary

Implement IMessageReader.RawRead