System.Text.UTF8Encoding Members

The members of System.Text.UTF8Encoding are listed below.

See Also: Inherited members from System.Text.Encoding

Public Constructors

Initializes a new instance of the System.Text.UTF8Encoding class.

Initializes a new instance of the System.Text.UTF8Encoding class. A parameter specifies whether to provide a Unicode byte order mark.

Initializes a new instance of the System.Text.UTF8Encoding class. Parameters specify whether to provide a Unicode byte order mark and whether to throw an exception when an invalid encoding is detected.

Public Methods

override
Equals(object) : bool

Determines whether the specified object is equal to the current System.Text.UTF8Encoding object.

override
GetByteCount(string) : int

Calculates the number of bytes produced by encoding the characters in the specified string.

override
GetByteCount(char*, int) : int

Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer.

override
GetByteCount(char[], int, int) : int

Calculates the number of bytes produced by encoding a set of characters from the specified character array.

override
GetBytes(string) : byte[]

Encodes the characters in a specified string object into a sequence of bytes.

override
GetBytes(char*, int, byte*, int) : int

Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer.

override
GetBytes(char[], int, int, byte[], int) : int

Encodes a set of characters from the specified character array into the specified byte array.

override
GetBytes(string, int, int, byte[], int) : int

Encodes a set of characters from the specified string into the specified byte array.

override
GetCharCount(byte*, int) : int

Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer.

override
GetCharCount(byte[], int, int) : int

Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.

override
GetChars(byte*, int, char*, int) : int

Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer.

override
GetChars(byte[], int, int, char[], int) : int

Decodes a sequence of bytes from the specified byte array into the specified character array.

override
GetDecoder() : Decoder

Obtains a decoder that converts a UTF-8 encoded sequence of bytes into a sequence of Unicode characters.

override
GetEncoder() : Encoder

Obtains an encoder that converts a sequence of Unicode characters into a UTF-8 encoded sequence of bytes.

override
GetHashCode() : int

Returns the hash code for the current instance.

override
GetMaxByteCount(int) : int

Calculates the maximum number of bytes produced by encoding the specified number of characters.

override
GetMaxCharCount(int) : int

Calculates the maximum number of characters produced by decoding the specified number of bytes.

override
GetPreamble() : byte[]

Returns a Unicode byte order mark encoded in UTF-8 format, if the constructor for this instance requests a byte order mark.

override
GetString(byte[], int, int) : string

Decodes a range of bytes from a byte array into a string.