|
| 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...
|
|
◆ 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
-
buffer | The buffer where the bytes are to be read from. |
length | The 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 |
◆ Utf8Decoder
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:
- src/Proton/Codec/Decoders/ProtonStreamDecoderState.cs