BaseEncoding Class | CryptSharp |
Performs generic binary-to-text encoding.
Inheritance Hierarchy
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
Name | Description | |
---|---|---|
![]() | BaseEncoding(String, Boolean) |
Defines a binary-to-text encoding.
|
![]() | BaseEncoding(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.
|
Methods
Name | Description | |
---|---|---|
![]() | GetByteCount | 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).) |
![]() | GetBytes(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).) |
![]() | GetBytes(Char, Int32, Int32, Byte, Int32, Int32) |
Converts characters from their text representation to a binary representation.
|
![]() | GetChar |
Gets the character corresponding to the specified value.
|
![]() | GetCharCount | 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).) |
![]() | GetChars(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).) |
![]() | GetChars(Byte, Int32, Int32, Char, Int32, Int32) |
Converts bytes from their binary representation to a text representation.
|
![]() | GetMaxByteCount | When overridden in a derived class, calculates the maximum number of bytes produced by encoding the specified number of characters. (Overrides EncodingGetMaxByteCount(Int32).) |
![]() | GetMaxCharCount | When overridden in a derived class, calculates the maximum number of characters produced by decoding the specified number of bytes. (Overrides EncodingGetMaxCharCount(Int32).) |
![]() | GetValue |
Gets the value corresponding to the specified character.
|
Properties
Name | Description | |
---|---|---|
![]() | BitMask |
The bit mask for a single character in the current encoding.
|
![]() | BitsPerCharacter |
The number of bits per character in the current encoding.
|
![]() | MsbComesFirst | true if the encoding begins with the most-significant bit of each byte.
Otherwise, the encoding begins with the least-significant bit.
|
See Also