BaseEncoding Class

CryptSharp

BaseEncoding Class CryptSharp
Performs generic binary-to-text encoding.
Inheritance Hierarchy

SystemObject  System.TextEncoding
    CryptSharp.UtilityBaseEncoding

Namespace: CryptSharp.Utility
Assembly: CryptSharp (in CryptSharp.dll) Version: 2.1.0.0
Syntax

public class BaseEncoding : Encoding
Public Class BaseEncoding
	Inherits Encoding
public ref class BaseEncoding : public Encoding
type BaseEncoding =  
    class
        inherit Encoding
    end

The BaseEncoding type exposes the following members.

Constructors

  NameDescription
Public methodBaseEncoding(String, Boolean)
Defines a binary-to-text encoding.
Public methodBaseEncoding(String, Boolean, IDictionaryChar, Int32, BaseEncodingDecodeFilterCallback)
Defines a binary-to-text encoding. Additional decode characters let you add aliases, and a filter callback can be used to make decoding case-insensitive among other things.
Top
Methods

  NameDescription
Public methodGetByteCount
When overridden in a derived class, calculates the number of bytes produced by encoding a set of characters from the specified character array.
(Overrides EncodingGetByteCount(Char, Int32, Int32).)
Public methodGetBytes(Char, Int32, Int32, Byte, Int32)
When overridden in a derived class, encodes a set of characters from the specified character array into the specified byte array.
(Overrides EncodingGetBytes(Char, Int32, Int32, Byte, Int32).)
Public methodGetBytes(Char, Int32, Int32, Byte, Int32, Int32)
Converts characters from their text representation to a binary representation.
Public methodGetChar
Gets the character corresponding to the specified value.
Public methodGetCharCount
When overridden in a derived class, calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.
(Overrides EncodingGetCharCount(Byte, Int32, Int32).)
Public methodGetChars(Byte, Int32, Int32, Char, Int32)
When overridden in a derived class, decodes a sequence of bytes from the specified byte array into the specified character array.
(Overrides EncodingGetChars(Byte, Int32, Int32, Char, Int32).)
Public methodGetChars(Byte, Int32, Int32, Char, Int32, Int32)
Converts bytes from their binary representation to a text representation.
Public methodGetMaxByteCount
When overridden in a derived class, calculates the maximum number of bytes produced by encoding the specified number of characters.
(Overrides EncodingGetMaxByteCount(Int32).)
Public methodGetMaxCharCount
When overridden in a derived class, calculates the maximum number of characters produced by decoding the specified number of bytes.
(Overrides EncodingGetMaxCharCount(Int32).)
Public methodGetValue
Gets the value corresponding to the specified character.
Top
Properties

  NameDescription
Public propertyBitMask
The bit mask for a single character in the current encoding.
Public propertyBitsPerCharacter
The number of bits per character in the current encoding.
Public propertyMsbComesFirst
true if the encoding begins with the most-significant bit of each byte. Otherwise, the encoding begins with the least-significant bit.
Top
See Also

Reference