Proton DotNet
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
Apache.Qpid.Proton.Codec.Decoders.ProtonDecoderState Class Reference
Inheritance diagram for Apache.Qpid.Proton.Codec.Decoders.ProtonDecoderState:
Apache.Qpid.Proton.Codec.IDecoderState

Public Member Functions

 ProtonDecoderState (ProtonDecoder decoder)
 
void Reset ()
 Resets the decoder after a complete decode operation freeing any held resources and preparing for a new decode operation.
 
string DecodeUtf8 (IProtonBuffer buffer, int length)
 Decodes an encoded UTF-8 string value from the given buffer. The number of bytes that comprise the encoding is provided by the caller, the decoder should not read more than that number of bytes from the provided buffer.
 

Properties

IUtf8Decoder Utf8Decoder [get, set]
 Sets a custom UTF-8 string decoder that will be used for all string decoding done from the decoder associated with this decoder state instance. If no decoder is registered then the implementation uses its own decoding algorithm.
 
IDecoder Decoder [get]
 Gets the IDecoder instance that was used when creating this decoder state object.
 
- Properties inherited from Apache.Qpid.Proton.Codec.IDecoderState

Member Function Documentation

◆ DecodeUtf8()

string Apache.Qpid.Proton.Codec.Decoders.ProtonDecoderState.DecodeUtf8 ( IProtonBuffer  buffer,
int  length 
)
inline

Decodes an encoded UTF-8 string value from the given buffer. The number of bytes that comprise the encoding is provided by the caller, the decoder should not read more than that number of bytes from the provided buffer.

Parameters
bufferThe buffer where the bytes are to be read from.
lengthThe encoded size of the UTF-8 string.
Returns
A string value decoded from the UTF-8 bytes

Implements Apache.Qpid.Proton.Codec.IDecoderState.

◆ Reset()

void Apache.Qpid.Proton.Codec.Decoders.ProtonDecoderState.Reset ( )
inline

Resets the decoder after a complete decode operation freeing any held resources and preparing for a new decode operation.

Implements Apache.Qpid.Proton.Codec.IDecoderState.

Property Documentation

◆ Decoder

IDecoder Apache.Qpid.Proton.Codec.Decoders.ProtonDecoderState.Decoder
get

Gets the IDecoder instance that was used when creating this decoder state object.

Implements Apache.Qpid.Proton.Codec.IDecoderState.


The documentation for this class was generated from the following file: