Proton DotNet
|
Public Member Functions | |
IEncoderState | NewEncoderState () |
Creates and returns a new encoder state object that should be used when encoding values with the encoder instance. More... | |
void | WriteNull (IProtonBuffer buffer, IEncoderState state) |
Write the indicated AMQP null type encoding into the buffer instance. More... | |
void | WriteBoolean (IProtonBuffer buffer, IEncoderState state, bool value) |
Writes the AMQP boolean encoding for the given value to the given buffer. More... | |
void | WriteUnsignedByte (IProtonBuffer buffer, IEncoderState state, byte value) |
Writes the AMQP unsigned byte encoding for the given value to the given buffer. More... | |
void | WriteUnsignedShort (IProtonBuffer buffer, IEncoderState state, ushort value) |
Writes the AMQP unsigned short encoding for the given value to the given buffer. More... | |
void | WriteUnsignedInteger (IProtonBuffer buffer, IEncoderState state, uint value) |
Writes the AMQP unsigned int encoding for the given value to the given buffer. More... | |
void | WriteUnsignedLong (IProtonBuffer buffer, IEncoderState state, ulong value) |
Writes the AMQP unsigned long encoding for the given value to the given buffer. More... | |
void | WriteByte (IProtonBuffer buffer, IEncoderState state, sbyte value) |
Writes the AMQP byte encoding for the given value to the given buffer. More... | |
void | WriteShort (IProtonBuffer buffer, IEncoderState state, short value) |
Writes the AMQP short encoding for the given value to the given buffer. More... | |
void | WriteInteger (IProtonBuffer buffer, IEncoderState state, int value) |
Writes the AMQP integer encoding for the given value to the given buffer. More... | |
void | WriteLong (IProtonBuffer buffer, IEncoderState state, long value) |
Writes the AMQP long encoding for the given value to the given buffer. More... | |
void | WriteFloat (IProtonBuffer buffer, IEncoderState state, float value) |
Writes the AMQP float encoding for the given value to the given buffer. More... | |
void | WriteDouble (IProtonBuffer buffer, IEncoderState state, double value) |
Writes the AMQP double encoding for the given value to the given buffer. More... | |
void | WriteDecimal32 (IProtonBuffer buffer, IEncoderState state, Decimal32 value) |
Writes the AMQP Decimal32 encoding for the given value to the given buffer. More... | |
void | WriteDecimal64 (IProtonBuffer buffer, IEncoderState state, Decimal64 value) |
Writes the AMQP Decimal64 encoding for the given value to the given buffer. More... | |
void | WriteDecimal128 (IProtonBuffer buffer, IEncoderState state, Decimal128 value) |
Writes the AMQP Decimal128 encoding for the given value to the given buffer. More... | |
void | WriteCharacter (IProtonBuffer buffer, IEncoderState state, char value) |
Writes the AMQP Character encoding for the given value to the given buffer. More... | |
void | WriteTimestamp (IProtonBuffer buffer, IEncoderState state, long value) |
Writes the AMQP Timestamp encoding for the given value to the given buffer. More... | |
void | WriteTimestamp (IProtonBuffer buffer, IEncoderState state, ulong value) |
Writes the AMQP Timestamp encoding for the given value to the given buffer. More... | |
void | WriteGuid (IProtonBuffer buffer, IEncoderState state, Guid value) |
Writes the AMQP UUID encoding for the given value to the given buffer. More... | |
void | WriteBinary (IProtonBuffer buffer, IEncoderState state, byte[] value) |
Writes the AMQP Binary encoding for the given value to the given buffer. More... | |
void | WriteBinary (IProtonBuffer buffer, IEncoderState state, IProtonBuffer value) |
Writes the AMQP Binary encoding for the given value to the given buffer. More... | |
void | WriteString (IProtonBuffer buffer, IEncoderState state, string value) |
Writes the AMQP string encoding for the given value to the given buffer. More... | |
void | WriteSymbol (IProtonBuffer buffer, IEncoderState state, Symbol value) |
Writes the AMQP Symbol encoding for the given value to the given buffer. More... | |
void | WriteSymbol (IProtonBuffer buffer, IEncoderState state, string value) |
Writes the AMQP Symbol encoding for the given value to the given buffer. More... | |
void | WriteList (IProtonBuffer buffer, IEncoderState state, IList value) |
Writes the AMQP List encoding for the given value to the given buffer. More... | |
void | WriteList< T > (IProtonBuffer buffer, IEncoderState state, IList< T > value) |
Writes the AMQP List encoding for the given value to the given buffer. More... | |
void | WriteMap (IProtonBuffer buffer, IEncoderState state, IDictionary value) |
Writes the AMQP Map encoding for the given value to the given buffer. More... | |
void | WriteMap< K, V > (IProtonBuffer buffer, IEncoderState state, IDictionary< K, V > value) |
Writes the AMQP Map encoding for the given value to the given buffer. More... | |
void | WriteMap< K, V > (IProtonBuffer buffer, IEncoderState state, IReadOnlyDictionary< K, V > value) |
Writes the AMQP Map encoding for the given value to the given buffer. More... | |
void | WriteDescribedType (IProtonBuffer buffer, IEncoderState state, IDescribedType value) |
Writes the AMQP Described Type encoding for the given value to the given buffer. More... | |
void | WriteDeliveryTag (IProtonBuffer buffer, IEncoderState state, IDeliveryTag value) |
Writes the contents of the given IDeliveryTag value into the provided proton buffer instance as an AMQP Binary type. More... | |
void | WriteObject (IProtonBuffer buffer, IEncoderState state, object value) |
Writes the AMQP encoding for the given value to the given buffer. More... | |
void | WriteArray (IProtonBuffer buffer, IEncoderState state, Array value) |
Writes the AMQP array encoding for the given value to the given buffer. More... | |
IEncoder | RegisterDescribedTypeEncoder (IDescribedTypeEncoder encoder) |
Allows registration of the given AMQP type encoder into this encoder to customize the writing of the Type managed by the encoder. More... | |
ITypeEncoder | LookupTypeEncoder (object value) |
Lookup a Type encoder using an instance of the type to be encoded. More... | |
ITypeEncoder | LookupTypeEncoder (Type typeClass) |
Lookup a Type encoder using Type value of the type to be encoded. More... | |
Properties | |
IEncoderState | CachedEncoderState [get] |
![]() | |
IEncoderState | CachedEncoderState [get] |
Returns an encoder state instance that lives with this encoder instance. The cached encoder state should be used with this encoder and only by a single thread at a time. More... | |
|
inline |
Lookup a Type encoder using an instance of the type to be encoded.
value | an instance of the type whose encoder is being looked up |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Lookup a Type encoder using Type value of the type to be encoded.
value | a Type instance for the type whose encoder is being looked up |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Creates and returns a new encoder state object that should be used when encoding values with the encoder instance.
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Allows registration of the given AMQP type encoder into this encoder to customize the writing of the Type managed by the encoder.
encoder | The encoder type instance to register with this encoder |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP array encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP Binary encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP Binary encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP boolean encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP byte encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP Character encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP Decimal128 encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP Decimal32 encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP Decimal64 encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the contents of the given IDeliveryTag value into the provided proton buffer instance as an AMQP Binary type.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The delivery tag to encode as an AMQP Binary |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP Described Type encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP double encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP float encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP UUID encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP integer encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP List encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP List encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP long encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP Map encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP Map encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP Map encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Write the indicated AMQP null type encoding into the buffer instance.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP short encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP string encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP Symbol encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP Symbol encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP Timestamp encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP Timestamp encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP unsigned byte encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP unsigned int encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP unsigned long encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.
|
inline |
Writes the AMQP unsigned short encoding for the given value to the given buffer.
buffer | The buffer to write the value encoding to |
state | An encoder state instance to use when encoding |
value | The value to be written |
EncodeException | If an error occurs during the encode operation |
Implements Apache.Qpid.Proton.Codec.IEncoder.