Class GSMPackedEncoding
- Namespace
- Inetlab.SMPP.Encodings
- Assembly
- cs.temp.dll.dll
Represents packed GSM 03.38 character encoding of Unicode characters.
public class GSMPackedEncoding : GSMEncoding
- Inheritance
-
ObjectGSMPackedEncoding
- Inherited Members
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
characterSetChar[]extensionSetChar[]
Methods
AddFiller(Byte, Byte[])
Prepends specified number of bits of padding to the message. Adds filler to align the user data to septets after UDH.
public static byte[] AddFiller(byte prependBits, byte[] orig)
Parameters
prependBitsByte- number of bits
origByte[]- original byte array of the message
Returns
- Byte[]
GetByteCount(Char[], Int32, Int32)
public override int GetByteCount(char[] chars, int index, int count)
Parameters
charsChar[]indexInt32countInt32
Returns
- Int32
GetBytes(Char[], Int32, Int32, Byte[], Int32)
public override int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex)
Parameters
charsChar[]charIndexInt32charCountInt32bytesByte[]byteIndexInt32
Returns
- Int32
GetCharCount(Byte[], Int32, Int32)
public override int GetCharCount(byte[] bytes, int index, int count)
Parameters
bytesByte[]indexInt32countInt32
Returns
- Int32
GetChars(Byte[], Int32, Int32, Char[], Int32)
public override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)
Parameters
bytesByte[]byteIndexInt32byteCountInt32charsChar[]charIndexInt32
Returns
- Int32
RemoveFiller(Byte, Byte[])
Removes a number of bits from beginning of the message
public static byte[] RemoveFiller(byte removedBits, byte[] orig)
Parameters
removedBitsByte- number of bits
origByte[]- original byte array of the message
Returns
- Byte[]