C# Class Goedel.Utilities.Extension

Static class containing extension methods for the utilities in this namespace.
Exibir arquivo Open project: hallambaker/Mathematical-Mesh

Public Methods

Method Description
AppendBase16 ( this StringBuilder, byte Data ) : void

Convert data to Base16 (hexadecimal) and append to the specified stringbuilder.

AppendBase32 ( this StringBuilder, byte Data ) : void

Convert data to Base16 (hexadecimal) and append to the specified stringbuilder.

AppendBase64 ( this StringBuilder, byte Data ) : void

Convert data to Base16 (hexadecimal) and append to the specified stringbuilder.

AppendBase64URL ( this StringBuilder, byte Data ) : void

Convert data to Base16 (hexadecimal) and append to the specified stringbuilder.

Base16 ( this Data ) : string

Convert data to Base16 (hexadecimal);

Base32 ( this Data ) : string
Base64 ( this Data ) : string
Base64URL ( this Data ) : string
CountUTF8 ( this Text ) : int

Count the number of bytes that are required to encode a string in UTF8.

IsBase64 ( this c ) : bool
ToASCII ( this c ) : char
ToUTF8 ( this Text ) : byte[]

Convert a string to a UTF byte array

ToUTF8 ( this Text, byte Buffer, int Position ) : int

Convert a string to a UTF byte array

UDF ( this Data, int Precision ) : string

Method Details

AppendBase16() public static method

Convert data to Base16 (hexadecimal) and append to the specified stringbuilder.
public static AppendBase16 ( this StringBuilder, byte Data ) : void
StringBuilder this
Data byte The data to be encoded.
return void

AppendBase32() public static method

Convert data to Base16 (hexadecimal) and append to the specified stringbuilder.
public static AppendBase32 ( this StringBuilder, byte Data ) : void
StringBuilder this
Data byte The data to be encoded.
return void

AppendBase64() public static method

Convert data to Base16 (hexadecimal) and append to the specified stringbuilder.
public static AppendBase64 ( this StringBuilder, byte Data ) : void
StringBuilder this
Data byte The data to be encoded.
return void

AppendBase64URL() public static method

Convert data to Base16 (hexadecimal) and append to the specified stringbuilder.
public static AppendBase64URL ( this StringBuilder, byte Data ) : void
StringBuilder this
Data byte The data to be encoded.
return void

Base16() public static method

Convert data to Base16 (hexadecimal);
public static Base16 ( this Data ) : string
Data this The data to be encoded.
return string

Base32() public static method

public static Base32 ( this Data ) : string
Data this
return string

Base64() public static method

public static Base64 ( this Data ) : string
Data this
return string

Base64URL() public static method

public static Base64URL ( this Data ) : string
Data this
return string

CountUTF8() public static method

Count the number of bytes that are required to encode a string in UTF8.
public static CountUTF8 ( this Text ) : int
Text this
return int

IsBase64() public static method

public static IsBase64 ( this c ) : bool
c this
return bool

ToASCII() public static method

public static ToASCII ( this c ) : char
c this
return char

ToUTF8() public static method

Convert a string to a UTF byte array
public static ToUTF8 ( this Text ) : byte[]
Text this
return byte[]

ToUTF8() public static method

Convert a string to a UTF byte array
public static ToUTF8 ( this Text, byte Buffer, int Position ) : int
Text this
Buffer byte
Position int
return int

UDF() public static method

public static UDF ( this Data, int Precision ) : string
Data this
Precision int
return string