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
bytes
byte[]A byte array to convert.
byteIndex
intThe first element of bytes to convert.
byteCount
intThe number of elements of bytes to convert.
chars
char[]An array to store the converted characters.
charIndex
intThe first element of chars in which data is stored.
charCount
intThe maximum number of elements of chars to use in the conversion.
flush
booltrue to indicate that no further data is to be converted; otherwise, false.
bytesUsed
intWhen this method returns, contains the number of bytes that were used in the conversion. This parameter is passed uninitialized.
charsUsed
intWhen this method returns, contains the number of characters from chars that were produced by the conversion. This parameter is passed uninitialized.
completed
boolWhen this method returns, contains true if all the characters specified by byteCount were converted; otherwise, false. This parameter is passed uninitialized.