Table of Contents

Class Decoder

Namespace
System.Text
Assembly
nanoFramework.System.Text.dll

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 int

The first element of bytes to convert.

byteCount int

The number of elements of bytes to convert.

chars char[]

An array to store the converted characters.

charIndex int

The first element of chars in which data is stored.

charCount int

The maximum number of elements of chars to use in the conversion.

flush bool

true to indicate that no further data is to be converted; otherwise, false.

bytesUsed int

When this method returns, contains the number of bytes that were used in the conversion. This parameter is passed uninitialized.

charsUsed int

When this method returns, contains the number of characters from chars that were produced by the conversion. This parameter is passed uninitialized.

completed bool

When this method returns, contains true if all the characters specified by byteCount were converted; otherwise, false. This parameter is passed uninitialized.