Base map type decoder used by decoders of various AMQP types that represent map style serialized objects. More...
Public Member Functions | |
IDictionary< K, V > | ReadMap< K, V > (IProtonBuffer buffer, IDecoderState state) |
Attempts to read and decode an AMQP Map from the given incoming byte buffer. The decoder applies type restrictions to the incoming Map based on the types given in the methods generic parameters. The resulting IDictionary is created using the type parameters provided to this method. More... | |
IDictionary< K, V > | ReadMap< K, V > (Stream stream, IStreamDecoderState state) |
Attempts to read and decode an AMQP Map from the given incoming byte stream. The decoder applies type restrictions to the incoming Map based on the types given in the methods generic parameters. The resulting IDictionary is created using the type parameters provided to this method. More... | |
override object | ReadValue (IProtonBuffer buffer, IDecoderState state) |
Reads this decoders managed type from the given buffer and returns it. More... | |
override object | ReadValue (Stream stream, IStreamDecoderState state) |
Reads this decoders managed type from the given buffer and returns it. More... | |
override void | SkipValue (IProtonBuffer buffer, IDecoderState state) |
Skips the value that this decoder is handling by skipping the encoded bytes in the provided buffer instance. More... | |
override void | SkipValue (Stream stream, IStreamDecoderState state) |
Skips the value that this decoder is handling by skipping the encoded bytes in the provided buffer instance. More... | |
abstract int | ReadCount (IProtonBuffer buffer, IDecoderState state) |
Reads the number of elements contained in the encoded map from the provided IProtonBuffer. The implementation must read the correct size encoding based on the type of map that this type decoder handles. More... | |
abstract int | ReadCount (Stream stream, IStreamDecoderState state) |
Reads the number of elements contained in the encoded map from the provided Stream. The implementation must read the correct size encoding based on the type of map that this type decoder handles. More... | |
abstract int | ReadSize (IProtonBuffer buffer, IDecoderState state) |
Reads the encoded size value for the encoded map payload and returns it. The read is destructive and the type decoder read methods cannot be called after this this unless the IProtonBuffer is reset via a position marker. This method can be useful when the caller intends to manually read the binary payload from the given IProtonBuffer. More... | |
abstract int | ReadSize (Stream stream, IStreamDecoderState state) |
Reads the encoded size value for the encoded map payload and returns it. The read is destructive and the type decoder read methods cannot be called after this this unless the Stream is reset via a position marker. This method can be useful when the caller intends to manually read the binary payload from the given stream. More... | |
![]() | |
Array | ReadArrayElements (IProtonBuffer buffer, IDecoderState state, int count) |
Reads a series of this type that have been encoded into the body of an Array type. When encoded into an array the values are encoded in series following the identifier for the type, this method is given a count of the number of instances that are encoded and should read each in succession and returning them in a new array. More... | |
Array | ReadArrayElements (Stream stream, IStreamDecoderState state, int count) |
Reads a series of this type that have been encoded into the body of an Array type. When encoded into an array the values are encoded in series following the identifier for the type, this method is given a count of the number of instances that are encoded and should read each in succession and returning them in a new array. More... | |
Properties | |
override Type | DecodesType [get] |
![]() | |
bool | IsArrayType [get] |
abstract EncodingCodes | EncodingCode [get] |
abstract Type | DecodesType [get] |
![]() | |
EncodingCodes | EncodingCode [get] |
Get the AMQP encoding code byte for the type this decoder handles. More... | |
![]() | |
Type | DecodesType [get] |
The Type that this decoder can read. More... | |
bool | IsArrayType [get] |
Returns true if the value that this decoder is going to read is an array type. More... | |
![]() | |
Type | DecodesType [get] |
The Type that this decoder can read. More... | |
bool | IsArrayType [get] |
Returns true if the value that this decoder is going to read is an array type. More... | |
Base map type decoder used by decoders of various AMQP types that represent map style serialized objects.
|
pure virtual |
Reads the number of elements contained in the encoded map from the provided IProtonBuffer. The implementation must read the correct size encoding based on the type of map that this type decoder handles.
buffer | The buffer where the count should be read from |
state | The decoder state that provides support |
Implements Apache.Qpid.Proton.Codec.Decoders.Primitives.IMapTypeDecoder.
Implemented in Apache.Qpid.Proton.Codec.Decoders.Primitives.Map8TypeDecoder, and Apache.Qpid.Proton.Codec.Decoders.Primitives.Map32TypeDecoder.
|
pure virtual |
Reads the number of elements contained in the encoded map from the provided Stream. The implementation must read the correct size encoding based on the type of map that this type decoder handles.
stream | The stream where the element count should be read from |
state | The decoder state that provides support |
Implements Apache.Qpid.Proton.Codec.Decoders.Primitives.IMapTypeDecoder.
Implemented in Apache.Qpid.Proton.Codec.Decoders.Primitives.Map8TypeDecoder, and Apache.Qpid.Proton.Codec.Decoders.Primitives.Map32TypeDecoder.
|
inline |
Attempts to read and decode an AMQP Map from the given incoming byte buffer. The decoder applies type restrictions to the incoming Map based on the types given in the methods generic parameters. The resulting IDictionary is created using the type parameters provided to this method.
K | The type restriction for the keys of the Map |
V | The type restriction for the values of the Map |
buffer | The buffer where the Map should be read from |
state | The decoder state that provides support |
Implements Apache.Qpid.Proton.Codec.Decoders.Primitives.IMapTypeDecoder.
|
inline |
Attempts to read and decode an AMQP Map from the given incoming byte stream. The decoder applies type restrictions to the incoming Map based on the types given in the methods generic parameters. The resulting IDictionary is created using the type parameters provided to this method.
K | The type restriction for the keys of the Map |
V | The type restriction for the values of the Map |
stream | The stream where the Map should be read from |
state | The decoder state that provides support |
Implements Apache.Qpid.Proton.Codec.Decoders.Primitives.IMapTypeDecoder.
|
pure virtual |
Reads the encoded size value for the encoded map payload and returns it. The read is destructive and the type decoder read methods cannot be called after this this unless the IProtonBuffer is reset via a position marker. This method can be useful when the caller intends to manually read the binary payload from the given IProtonBuffer.
buffer | The buffer where the size should be read from |
state | The decoder state that provides support |
Implements Apache.Qpid.Proton.Codec.Decoders.Primitives.IMapTypeDecoder.
Implemented in Apache.Qpid.Proton.Codec.Decoders.Primitives.Map8TypeDecoder, and Apache.Qpid.Proton.Codec.Decoders.Primitives.Map32TypeDecoder.
|
pure virtual |
Reads the encoded size value for the encoded map payload and returns it. The read is destructive and the type decoder read methods cannot be called after this this unless the Stream is reset via a position marker. This method can be useful when the caller intends to manually read the binary payload from the given stream.
stream | The stream where the size should be read from |
state | The decoder state that provides support |
Implements Apache.Qpid.Proton.Codec.Decoders.Primitives.IMapTypeDecoder.
Implemented in Apache.Qpid.Proton.Codec.Decoders.Primitives.Map8TypeDecoder, and Apache.Qpid.Proton.Codec.Decoders.Primitives.Map32TypeDecoder.
|
inlinevirtual |
Reads this decoders managed type from the given buffer and returns it.
buffer | The buffer where the encoded bytes can be read from |
state | The decoder state that can be used during decode |
Implements Apache.Qpid.Proton.Codec.Decoders.AbstractPrimitiveTypeDecoder.
|
inlinevirtual |
Reads this decoders managed type from the given buffer and returns it.
stream | The stream where the encoded bytes can be read from |
state | The decoder state that can be used during decode |
Implements Apache.Qpid.Proton.Codec.Decoders.AbstractPrimitiveTypeDecoder.
|
inlinevirtual |
Skips the value that this decoder is handling by skipping the encoded bytes in the provided buffer instance.
buffer | The buffer where the encoded bytes can be read from |
state | The decoder state that can be used during decode |
Implements Apache.Qpid.Proton.Codec.Decoders.AbstractPrimitiveTypeDecoder.
|
inlinevirtual |
Skips the value that this decoder is handling by skipping the encoded bytes in the provided buffer instance.
stream | The stream where the encoded bytes can be read from |
state | The decoder state that can be used during decode |
Implements Apache.Qpid.Proton.Codec.Decoders.AbstractPrimitiveTypeDecoder.