C# 클래스 Renci.SshNet.Common.ASCIIEncoding

상속: System.Text.Encoding
파일 보기 프로젝트 열기: sshnet/SSH.NET 1 사용 예제들

공개 메소드들

메소드 설명
GetByteCount ( char chars, int index, int count ) : int

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

GetBytes ( char chars, int charIndex, int charCount, byte bytes, int byteIndex ) : int

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

GetCharCount ( byte bytes, int index, int count ) : int

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

GetChars ( byte bytes, int byteIndex, int byteCount, char chars, int charIndex ) : int

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

GetMaxByteCount ( int charCount ) : int

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

GetMaxCharCount ( int byteCount ) : int

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

비공개 메소드들

메소드 설명
ASCIIEncoding ( ) : System

메소드 상세

GetByteCount() 공개 메소드

Calculates the number of bytes produced by encoding a set of characters from the specified character array.
is null. or is less than zero.-or- and do not denote a valid range in .
public GetByteCount ( char chars, int index, int count ) : int
chars char The character array containing the set of characters to encode.
index int The index of the first character to encode.
count int The number of characters to encode.
리턴 int

GetBytes() 공개 메소드

Encodes a set of characters from the specified character array into the specified byte array.
is null.-or- is null. or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . does not have enough capacity from to the end of the array to accommodate the resulting bytes.
public GetBytes ( char chars, int charIndex, int charCount, byte bytes, int byteIndex ) : int
chars char The character array containing the set of characters to encode.
charIndex int The index of the first character to encode.
charCount int The number of characters to encode.
bytes byte The byte array to contain the resulting sequence of bytes.
byteIndex int The index at which to start writing the resulting sequence of bytes.
리턴 int

GetCharCount() 공개 메소드

Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.
is null. or is less than zero.-or- and do not denote a valid range in .
public GetCharCount ( byte bytes, int index, int count ) : int
bytes byte The byte array containing the sequence of bytes to decode.
index int The index of the first byte to decode.
count int The number of bytes to decode.
리턴 int

GetChars() 공개 메소드

Decodes a sequence of bytes from the specified byte array into the specified character array.
is null.-or- is null. or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . does not have enough capacity from to the end of the array to accommodate the resulting characters.
public GetChars ( byte bytes, int byteIndex, int byteCount, char chars, int charIndex ) : int
bytes byte The byte array containing the sequence of bytes to decode.
byteIndex int The index of the first byte to decode.
byteCount int The number of bytes to decode.
chars char The character array to contain the resulting set of characters.
charIndex int The index at which to start writing the resulting set of characters.
리턴 int

GetMaxByteCount() 공개 메소드

Calculates the maximum number of bytes produced by encoding the specified number of characters.
is less than zero.
public GetMaxByteCount ( int charCount ) : int
charCount int The number of characters to encode.
리턴 int

GetMaxCharCount() 공개 메소드

Calculates the maximum number of characters produced by decoding the specified number of bytes.
is less than zero.
public GetMaxCharCount ( int byteCount ) : int
byteCount int The number of bytes to decode.
리턴 int