Proton DotNet
|
Public Member Functions | |
IDecoderState | NewDecoderState () |
Creates and returns a new decoder state object that should be used when decoding values with the decoder instance. | |
bool? | ReadBoolean (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
bool | ReadBoolean (IProtonBuffer buffer, IDecoderState state, bool defaultValue) |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
sbyte? | ReadByte (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
sbyte | ReadByte (IProtonBuffer buffer, IDecoderState state, sbyte defaultValue) |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
byte? | ReadUnsignedByte (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
byte | ReadUnsignedByte (IProtonBuffer buffer, IDecoderState state, byte defaultValue) |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
char? | ReadCharacter (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
char | ReadCharacter (IProtonBuffer buffer, IDecoderState state, char defaultValue) |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
Decimal32 | ReadDecimal32 (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
Decimal64 | ReadDecimal64 (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
Decimal128 | ReadDecimal128 (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
short? | ReadShort (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
short | ReadShort (IProtonBuffer buffer, IDecoderState state, short defaultValue) |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
ushort? | ReadUnsignedShort (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
ushort | ReadUnsignedShort (IProtonBuffer buffer, IDecoderState state, ushort defaultValue) |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
int? | ReadInteger (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
int | ReadInteger (IProtonBuffer buffer, IDecoderState state, int defaultValue) |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
uint? | ReadUnsignedInteger (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
uint | ReadUnsignedInteger (IProtonBuffer buffer, IDecoderState state, uint defaultValue) |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
long? | ReadLong (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
long | ReadLong (IProtonBuffer buffer, IDecoderState state, long defaultValue) |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
ulong? | ReadUnsignedLong (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
ulong | ReadUnsignedLong (IProtonBuffer buffer, IDecoderState state, ulong defaultValue) |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
float? | ReadFloat (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
float | ReadFloat (IProtonBuffer buffer, IDecoderState state, float defaultValue) |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
double? | ReadDouble (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
double | ReadDouble (IProtonBuffer buffer, IDecoderState state, double defaultValue) |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
IProtonBuffer | ReadBinary (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
string | ReadString (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
Symbol | ReadSymbol (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
string | ReadSymbolAsString (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
ulong? | ReadTimestamp (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
Guid? | ReadGuid (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
IDictionary< K, V > | ReadMap< K, V > (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
IList< T > | ReadList< T > (IProtonBuffer buffer, IDecoderState state) |
object | ReadObject (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
T | ReadObject< T > (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
T[] | ReadMultiple< T > (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
IDeliveryTag | ReadDeliveryTag (IProtonBuffer buffer, IDecoderState state) |
This method expects to read a Binary encoded type from the provided stream and constructs a IDeliveryTag type that wraps the bytes encoded. If the encoding is NULL AMQP type then this method returns null. | |
ITypeDecoder | ReadNextTypeDecoder (IProtonBuffer buffer, IDecoderState state) |
Reads from the given IProtonBuffer instance and returns a ITypeDecoder that can read the next encoded AMQP type from the byte stream. If an error occurs while attempting to read the encoded type a DecodeException is thrown. | |
ITypeDecoder | PeekNextTypeDecoder (IProtonBuffer buffer, IDecoderState state) |
Peeks ahead in the given IProtonBuffer instance and returns a ITypeDecoder that can read the next encoded AMQP type from the byte stream. If an error occurs while attempting to read the encoded type a DecodeException is thrown. The underlying buffer state is not modified as a result of calling the peek ahead operation and the returned decoder will not correctly be able to read the encoded type until the type encoding bytes are read. | |
IDecoder | RegisterDescribedTypeDecoder (IDescribedTypeDecoder decoder) |
Allows for a custom described type decoder to be registered with this decoder instance for use when decoding AMQP described types from incoming byte streams. | |
![]() | |
IList< V > | ReadList< V > (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts. | |
Properties | |
IDecoderState | CachedDecoderState [get] |
Returns a cached decoder state instance that can be used be single threaded readers that use this decoder instance. | |
![]() |
|
inline |
Creates and returns a new decoder state object that should be used when decoding values with the decoder instance.
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Peeks ahead in the given IProtonBuffer instance and returns a ITypeDecoder that can read the next encoded AMQP type from the byte stream. If an error occurs while attempting to read the encoded type a DecodeException is thrown. The underlying buffer state is not modified as a result of calling the peek ahead operation and the returned decoder will not correctly be able to read the encoded type until the type encoding bytes are read.
T | The type that the decoder handles |
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
defaultValue | The default value to return for null encodings |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
defaultValue | The default value to return for null encodings |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
defaultValue | The default value to return for null encodings |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
This method expects to read a Binary encoded type from the provided stream and constructs a IDeliveryTag type that wraps the bytes encoded. If the encoding is NULL AMQP type then this method returns null.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
defaultValue | The default value to return for null encodings |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
defaultValue | The default value to return for null encodings |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
defaultValue | The default value to return for null encodings |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
defaultValue | The default value to return for null encodings |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads from the given IProtonBuffer instance and returns a ITypeDecoder that can read the next encoded AMQP type from the byte stream. If an error occurs while attempting to read the encoded type a DecodeException is thrown.
T | The type that the decoder handles |
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
defaultValue | The default value to return for null encodings |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
defaultValue | The default value to return for null encodings |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
defaultValue | The default value to return for null encodings |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
defaultValue | The default value to return for null encodings |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Reads the encoded value from the given byte buffer and returns it or the default if the encoding type is null. If the next value in the byte stream is not of the requested type an error is thrown. If the caller wishes to recover from errors due to unexpected types the byte stream should be marked and reset in order to make additional read attempts.
buffer | The buffer to read the encoded value from |
state | A decoder state instance to use when decoding |
defaultValue | The default value to return for null encodings |
DecodeException | If an error occurs during the decode operation |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
inline |
Allows for a custom described type decoder to be registered with this decoder instance for use when decoding AMQP described types from incoming byte streams.
V | Type that the decoder manages |
decoder | A described type decoder to register |
Implements Apache.Qpid.Proton.Codec.IDecoder.
|
get |
Returns a cached decoder state instance that can be used be single threaded readers that use this decoder instance.
Implements Apache.Qpid.Proton.Codec.IDecoder.