C# Class System.Text.EncodingNLS

Inheritance: Encoding
显示文件 Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
GetByteCount ( char chars, int count, EncoderNLS encoder ) : int
GetBytes ( char chars, int charCount, byte bytes, int byteCount, EncoderNLS encoder ) : int
GetCharCount ( byte bytes, int count, DecoderNLS decoder ) : int
GetChars ( byte bytes, int byteCount, char chars, int charCount, DecoderNLS decoder ) : int
GetDecoder ( ) : Decoder
GetEncoder ( ) : Encoder

Protected Methods

Method Description
EncodingNLS ( int codePage ) : System
EncodingNLS ( int codePage, EncoderFallback enc, DecoderFallback dec ) : System

Private Methods

Method Description
GetByteCount ( String s ) : int
GetByteCount ( char chars, int count ) : int
GetByteCount ( char chars, int index, int count ) : int
GetBytes ( String s, int charIndex, int charCount, byte bytes, int byteIndex ) : int
GetBytes ( char chars, int charCount, byte bytes, int byteCount ) : int
GetBytes ( char chars, int charIndex, int charCount, byte bytes, int byteIndex ) : int
GetCharCount ( byte bytes, int count ) : int
GetCharCount ( byte bytes, int index, int count ) : int
GetChars ( byte bytes, int byteCount, char chars, int charCount ) : int
GetChars ( byte bytes, int byteIndex, int byteCount, char chars, int charIndex ) : int
GetLocalizedEncodingNameResource ( int codePage ) : string
GetString ( byte bytes, int index, int count ) : String
ThrowBytesOverflow ( ) : void
ThrowBytesOverflow ( EncoderNLS encoder, bool nothingEncoded ) : void
ThrowCharsOverflow ( ) : void
ThrowCharsOverflow ( DecoderNLS decoder, bool nothingDecoded ) : void

Method Details

EncodingNLS() protected method

protected EncodingNLS ( int codePage ) : System
codePage int
return System

EncodingNLS() protected method

protected EncodingNLS ( int codePage, EncoderFallback enc, DecoderFallback dec ) : System
codePage int
enc EncoderFallback
dec DecoderFallback
return System

GetByteCount() public abstract method

public abstract GetByteCount ( char chars, int count, EncoderNLS encoder ) : int
chars char
count int
encoder EncoderNLS
return int

GetBytes() public abstract method

public abstract GetBytes ( char chars, int charCount, byte bytes, int byteCount, EncoderNLS encoder ) : int
chars char
charCount int
bytes byte
byteCount int
encoder EncoderNLS
return int

GetCharCount() public abstract method

public abstract GetCharCount ( byte bytes, int count, DecoderNLS decoder ) : int
bytes byte
count int
decoder DecoderNLS
return int

GetChars() public abstract method

public abstract GetChars ( byte bytes, int byteCount, char chars, int charCount, DecoderNLS decoder ) : int
bytes byte
byteCount int
chars char
charCount int
decoder DecoderNLS
return int

GetDecoder() public method

public GetDecoder ( ) : Decoder
return Decoder

GetEncoder() public method

public GetEncoder ( ) : Encoder
return Encoder