C# Class Cimbalino.Phone.Toolkit.Compression.Iso8859Dash1Encoding

Provides a text encoder for the iso-8859-1 encoding, aka Latin1 encoding, for platforms that do not support it, for example on Silverlight or some Compact Framework platforms.
Inheritance: System.Text.Encoding
Show file Open project: Cimbalino/Cimbalino-Phone-Toolkit

Public Methods

Method Description
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 start, int count, byte bytes, int byteIndex ) : int

Encodes a set of characters from a character array into a 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 start, int count, 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.

Method Details

GetByteCount() public method

Calculates the number of bytes produced by encoding a set of characters from the specified character array.
public GetByteCount ( char chars, int index, int count ) : int
chars char
index int
count int
return int

GetBytes() public method

Encodes a set of characters from a character array into a byte array.
public GetBytes ( char chars, int start, int count, byte bytes, int byteIndex ) : int
chars char The character array containing the set of characters to encode. ///
start int The index of the first character to encode. ///
count 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. ///
return int

GetCharCount() public method

Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.
public GetCharCount ( byte bytes, int index, int count ) : int
bytes byte
index int
count int
return int

GetChars() public method

Decodes a sequence of bytes from the specified byte array into the specified character array.
public GetChars ( byte bytes, int start, int count, char chars, int charIndex ) : int
bytes byte The byte array containing the sequence of bytes to decode. ///
start int The index of the first byte to decode. ///
count 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. ///
return int

GetMaxByteCount() public method

Calculates the maximum number of bytes produced by encoding the specified number of characters.
public GetMaxByteCount ( int charCount ) : int
charCount int The number of characters to encode. ///
return int

GetMaxCharCount() public method

Calculates the maximum number of characters produced by decoding the specified number of bytes.
public GetMaxCharCount ( int byteCount ) : int
byteCount int The number of bytes to decode.
return int