Class GSMPackedEncoding
Represents packed GSM 03.38 character encoding of Unicode characters.
public class GSMPackedEncoding : GSMEncoding, ICloneable
  - Inheritance
 - 
      
      
      
      GSMPackedEncoding
 
- Implements
 
- Inherited Members
 
- Extension Methods
 
Constructors
GSMPackedEncoding()
public GSMPackedEncoding()
  GSMPackedEncoding(GSMEncoding)
public GSMPackedEncoding(GSMEncoding encoding)
  Parameters
encodingGSMEncoding
GSMPackedEncoding(IGSMCharsetMap)
public GSMPackedEncoding(IGSMCharsetMap charsetMap)
  Parameters
charsetMapIGSMCharsetMap
GSMPackedEncoding(char[], char[])
public GSMPackedEncoding(char[] characterSet, char[] extensionSet)
  Parameters
Methods
GetByteCount(char[], int, int)
When overridden in a derived class, calculates the number of bytes produced by encoding a set of characters from the specified character array.
public override int GetByteCount(char[] chars, int index, int count)
  Parameters
charschar[]The character array containing the set of characters to encode.
indexintThe index of the first character to encode.
countintThe number of characters to encode.
Returns
- int
 The number of bytes produced by encoding the specified characters.
Exceptions
- ArgumentNullException
 charsis null.- ArgumentOutOfRangeException
 indexorcountis less than zero.-or-indexandcountdo not denote a valid range inchars.- EncoderFallbackException
 A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and-EncoderFallback is set to EncoderExceptionFallback.
GetBytes(char[], int, int, byte[], int)
When overridden in a derived class, encodes a set of characters from the specified character array into the specified byte array.
public override int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex)
  Parameters
charschar[]The character array containing the set of characters to encode.
charIndexintThe index of the first character to encode.
charCountintThe number of characters to encode.
bytesbyte[]The byte array to contain the resulting sequence of bytes.
byteIndexintThe index at which to start writing the resulting sequence of bytes.
Returns
- int
 The actual number of bytes written into
bytes.
Exceptions
- ArgumentNullException
 charsis null.-or-bytesis null.- ArgumentOutOfRangeException
 charIndexorcharCountorbyteIndexis less than zero.-or-charIndexandcharCountdo not denote a valid range inchars.-or-byteIndexis not a valid index inbytes.- ArgumentException
 bytesdoes not have enough capacity frombyteIndexto the end of the array to accommodate the resulting bytes.- EncoderFallbackException
 A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and-EncoderFallback is set to EncoderExceptionFallback.
GetCharCount(byte[], int, int)
When overridden in a derived class, calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.
public override int GetCharCount(byte[] bytes, int index, int count)
  Parameters
bytesbyte[]The byte array containing the sequence of bytes to decode.
indexintThe index of the first byte to decode.
countintThe number of bytes to decode.
Returns
- int
 The number of characters produced by decoding the specified sequence of bytes.
Exceptions
- ArgumentNullException
 bytesis null.- ArgumentOutOfRangeException
 indexorcountis less than zero.-or-indexandcountdo not denote a valid range inbytes.- DecoderFallbackException
 A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and-DecoderFallback is set to DecoderExceptionFallback.
GetChars(byte[], int, int, char[], int)
When overridden in a derived class, decodes a sequence of bytes from the specified byte array into the specified character array.
public override int GetChars(byte[] bytes, int index, int count, char[] chars, int charIndex)
  Parameters
bytesbyte[]The byte array containing the sequence of bytes to decode.
indexintcountintcharschar[]The character array to contain the resulting set of characters.
charIndexintThe index at which to start writing the resulting set of characters.
Returns
- int
 The actual number of characters written into
chars.
Exceptions
- ArgumentNullException
 bytesis null.-or-charsis null.- ArgumentOutOfRangeException
 byteIndexorbyteCountorcharIndexis less than zero.-or-byteindexandbyteCountdo not denote a valid range inbytes.-or-charIndexis not a valid index inchars.- ArgumentException
 charsdoes not have enough capacity fromcharIndexto the end of the array to accommodate the resulting characters.- DecoderFallbackException
 A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and-DecoderFallback is set to DecoderExceptionFallback.