C# Class System.Text.UTF8Encoding

Inheritance: Encoding
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

Méthode Description
Equals ( object value ) : bool
GetByteCount ( char chars, int index, int count ) : int
GetByteCount ( string chars ) : int
GetBytes ( char chars, int charIndex, int charCount, byte bytes, int byteIndex ) : int
GetBytes ( string s, int charIndex, int charCount, byte bytes, int byteIndex ) : int
GetCharCount ( byte bytes, int index, int count ) : int
GetChars ( byte bytes, int byteIndex, int byteCount, char chars, int charIndex ) : int
GetDecoder ( ) : System.Text.Decoder
GetEncoder ( ) : System.Text.Encoder
GetHashCode ( ) : int
GetMaxByteCount ( int charCount ) : int
GetMaxCharCount ( int byteCount ) : int
GetPreamble ( ) : byte[]
GetString ( byte bytes, int index, int count ) : string
UTF8Encoding ( )
UTF8Encoding ( bool encoderShouldEmitUTF8Identifier )
UTF8Encoding ( bool encoderShouldEmitUTF8Identifier, bool throwOnInvalidBytes )

Private Methods

Méthode Description
GetByteCount ( char chars, int count ) : int
GetBytes ( char chars, int charCount, byte bytes, int byteCount ) : int
GetCharCount ( byte bytes, int count ) : int
GetChars ( byte bytes, int byteCount, char chars, int charCount ) : int

Method Details

Equals() public méthode

public Equals ( object value ) : bool
value object
Résultat bool

GetByteCount() public méthode

public GetByteCount ( char chars, int index, int count ) : int
chars char
index int
count int
Résultat int

GetByteCount() public méthode

public GetByteCount ( string chars ) : int
chars string
Résultat int

GetBytes() public méthode

public GetBytes ( char chars, int charIndex, int charCount, byte bytes, int byteIndex ) : int
chars char
charIndex int
charCount int
bytes byte
byteIndex int
Résultat int

GetBytes() public méthode

public GetBytes ( string s, int charIndex, int charCount, byte bytes, int byteIndex ) : int
s string
charIndex int
charCount int
bytes byte
byteIndex int
Résultat int

GetCharCount() public méthode

public GetCharCount ( byte bytes, int index, int count ) : int
bytes byte
index int
count int
Résultat int

GetChars() public méthode

public GetChars ( byte bytes, int byteIndex, int byteCount, char chars, int charIndex ) : int
bytes byte
byteIndex int
byteCount int
chars char
charIndex int
Résultat int

GetDecoder() public méthode

public GetDecoder ( ) : System.Text.Decoder
Résultat System.Text.Decoder

GetEncoder() public méthode

public GetEncoder ( ) : System.Text.Encoder
Résultat System.Text.Encoder

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetMaxByteCount() public méthode

public GetMaxByteCount ( int charCount ) : int
charCount int
Résultat int

GetMaxCharCount() public méthode

public GetMaxCharCount ( int byteCount ) : int
byteCount int
Résultat int

GetPreamble() public méthode

public GetPreamble ( ) : byte[]
Résultat byte[]

GetString() public méthode

public GetString ( byte bytes, int index, int count ) : string
bytes byte
index int
count int
Résultat string

UTF8Encoding() public méthode

public UTF8Encoding ( )

UTF8Encoding() public méthode

public UTF8Encoding ( bool encoderShouldEmitUTF8Identifier )
encoderShouldEmitUTF8Identifier bool

UTF8Encoding() public méthode

public UTF8Encoding ( bool encoderShouldEmitUTF8Identifier, bool throwOnInvalidBytes )
encoderShouldEmitUTF8Identifier bool
throwOnInvalidBytes bool