Click or drag to resize
UTF8Encoding Class
Represents a UTF-8 encoding of Unicode characters.
Inheritance Hierarchy

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
[SerializableAttribute]
public class UTF8Encoding : Encoding

The UTF8Encoding type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current UTF8Encoding object.
(Overrides Encoding.Equals(Object).)
Public methodGetByteCount(Char[])
When overridden in a derived class, calculates the number of bytes produced by encoding all the characters in the specified character array.
(Inherited from Encoding.)
Public methodGetByteCount(String)
When overridden in a derived class, calculates the number of bytes produced by encoding the characters in the specified string.
(Inherited from Encoding.)
Public methodGetByteCount(Char*, Int32)
When overridden in a derived class, calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer.
(Inherited from Encoding.)
Public methodGetByteCount(Char[], Int32, Int32)
When overridden in a derived class, calculates the number of bytes produced by encoding a set of characters from the specified character array.
(Inherited from Encoding.)
Public methodGetBytes(Char[])
When overridden in a derived class, encodes all the characters in the specified character array into a sequence of bytes.
(Inherited from Encoding.)
Public methodGetBytes(String)
When overridden in a derived class, encodes all the characters in the specified string into a sequence of bytes.
(Inherited from Encoding.)
Public methodGetBytes(Char[], Int32, Int32)
When overridden in a derived class, encodes a set of characters from the specified character array into a sequence of bytes.
(Inherited from Encoding.)
Public methodGetBytes(Char*, Int32, Byte*, Int32)
When overridden in a derived class, 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.
(Inherited from Encoding.)
Public methodGetBytes(Char[], Int32, Int32,Byte[], Int32)
When overridden in a derived class, encodes a set of characters from the specified character array into the specified byte array.
(Inherited from Encoding.)
Public methodGetBytes(String, Int32, Int32,Byte[], Int32)
When overridden in a derived class, encodes a set of characters from the specified string into the specified byte array.
(Inherited from Encoding.)
Public methodGetCharCount(Byte[])
When overridden in a derived class, calculates the number of characters produced by decoding all the bytes in the specified byte array.
(Inherited from Encoding.)
Public methodGetCharCount(Byte*, Int32)
When overridden in a derived class, calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer.
(Inherited from Encoding.)
Public methodGetCharCount(Byte[], Int32, Int32)
When overridden in a derived class, calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.
(Inherited from Encoding.)
Public methodGetChars(Byte[])
When overridden in a derived class, decodes all the bytes in the specified byte array into a set of characters.
(Inherited from Encoding.)
Public methodGetChars(Byte[], Int32, Int32)
When overridden in a derived class, decodes a sequence of bytes from the specified byte array into a set of characters.
(Inherited from Encoding.)
Public methodGetChars(Byte*, Int32, Char*, Int32)
When overridden in a derived class, 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.
(Inherited from Encoding.)
Public methodGetChars(Byte[], Int32, Int32,Char[], Int32)
When overridden in a derived class, decodes a sequence of bytes from the specified byte array into the specified character array.
(Inherited from Encoding.)
Public methodGetHashCode
Returns the hash code for the current instance.
(Overrides Encoding.GetHashCode().)
Public methodGetString(Byte[])
When overridden in a derived class, decodes all the bytes in the specified byte array into a string.
(Inherited from Encoding.)
Public methodGetString(Byte[], Int32, Int32)
When overridden in a derived class, decodes a sequence of bytes from the specified byte array into a string.
(Inherited from Encoding.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also