Mono Class Library: System.Text.UnicodeEncoding Overview | MembersSystem.Text.UnicodeEncoding.GetDecoder Method |
Returns a System.Text.Decoder object for the current instance. [Edit]
|
A System.Text.Decoder object for the current instance. [Edit]
Note:[Edit]This method overrides Encoding.GetDecoder.
Unlike the UnicodeEncoding.GetChars(Byte[], int, int, Char[], int) method, the Decoder.GetChars(Byte[], int, int, Char[], int) method provided by a System.Text.Decoder object can convert partial sequences of bytes into partial sequences of characters by maintaining the appropriate state between the conversions.
This implementation returns a decoder that simply forwards calls to UnicodeEncoding.GetCharCount(Byte[], int, int) and UnicodeEncoding.GetChars(Byte[], int, int, Char[], int) to the corresponding methods of the current instance. It is recommended that encoding implementations that requires state to be maintained between successive conversions override this method and return an instance of an appropriate decoder implementation.
Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0