Class Decoder
Converts a sequence of encoded bytes into a set of characters.
public abstract class Decoder
- Inheritance
-
Decoder
- Inherited Members
- Extension Methods
Constructors
Decoder()
protected Decoder()
Methods
Convert(byte[], int, int, char[], int, int, bool, out int, out int, out bool)
Converts an array of encoded bytes to UTF-16 encoded characters and stores the result in a character array.
public abstract void Convert(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex, int charCount, bool flush, out int bytesUsed, out int charsUsed, out bool completed)
Parameters
bytesbyte[]A byte array to convert.
byteIndexintThe first element of bytes to convert.
byteCountintThe number of elements of bytes to convert.
charschar[]An array to store the converted characters.
charIndexintThe first element of chars in which data is stored.
charCountintThe maximum number of elements of chars to use in the conversion.
flushbooltrue to indicate that no further data is to be converted; otherwise, false.
bytesUsedintWhen this method returns, contains the number of bytes that were used in the conversion. This parameter is passed uninitialized.
charsUsedintWhen this method returns, contains the number of characters from chars that were produced by the conversion. This parameter is passed uninitialized.
completedboolWhen this method returns, contains true if all the characters specified by byteCount were converted; otherwise, false. This parameter is passed uninitialized.