Proton DotNet
Public Member Functions | Properties | List of all members
Apache.Qpid.Proton.Codec.Decoders.ProtonStreamDecoderState Class Reference
Inheritance diagram for Apache.Qpid.Proton.Codec.Decoders.ProtonStreamDecoderState:
Apache.Qpid.Proton.Codec.IStreamDecoderState

Public Member Functions

 ProtonStreamDecoderState (ProtonStreamDecoder parent)
 
void Reset ()
 Resets the decoder after a complete decode operation freeing any held resources and preparing for a new decode operation. More...
 
string DecodeUtf8 (Stream stream, 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. More...
 

Properties

IStreamDecoder Decoder [get]
 
IUtf8StreamDecoder 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. More...
 
- Properties inherited from Apache.Qpid.Proton.Codec.IStreamDecoderState
IStreamDecoder Decoder [get]
 Gets the IDecoder instance that was used when creating this decoder state object. More...
 

Member Function Documentation

◆ DecodeUtf8()

string Apache.Qpid.Proton.Codec.Decoders.ProtonStreamDecoderState.DecodeUtf8 ( Stream  stream,
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.IStreamDecoderState.

◆ Reset()

void Apache.Qpid.Proton.Codec.Decoders.ProtonStreamDecoderState.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.IStreamDecoderState.

Property Documentation

◆ Utf8Decoder

IUtf8StreamDecoder Apache.Qpid.Proton.Codec.Decoders.ProtonStreamDecoderState.Utf8Decoder
getset

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.


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