UTF8Encoding: GetEncoder

GetEncoder

Returns an encoder that maintains state.



 Public Function GetEncoder ( ) As Encoder

Return Values

Encoder -  The stateful encoder.

Remarks

Unlike UTF8Encoding, the encoder maintains state between encoding calls. This allows for a set of characters to be split up but still be encoded as a single set of characters. This will only be effective when encoding UTF-16 surrogate pairs of characters. Otherwise, a single characters is all that is required to be encodable. the UTF-16 surrogate pairs can be split to the last character of one call and the first character of the next and the encoding will continue as if a single call was made.

See Also

Project VBCorLib Overview Class UTF8Encoding Overview UTF8Encoding Properties UTF8Encoding Methods GetDecoder GetHashCode