BogaNet 1.4.0
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
BogaNet.Encoder.Base32 Class Reference

Base32 encoder class. More...

Static Public Member Functions

static byte[] FromBase32String (string base32string)
 Converts a Base32-string to a byte-array.
 
static string ToBase32String (params byte[] bytes)
 Converts a byte-array to a Base32-string.
 
static string ToBase32String (string str, Encoding? encoding=null)
 Converts the value of a string to a Base32-string.
 
static string Base32FromFile (string file)
 Converts a file to a Base32-string.
 
static async Task< string > Base32FromFileAsync (string file)
 Converts a file to a Base32-string asynchronously.
 
static bool FileFromBase32 (string file, string base32string)
 Converts a Base32-string to a file.
 
static async Task< bool > FileFromBase32Async (string file, string base32string)
 Converts a Base32-string to a file asynchronously.
 

Detailed Description

Base32 encoder class.

Member Function Documentation

◆ Base32FromFile()

static string BogaNet.Encoder.Base32.Base32FromFile ( string file)
static

Converts a file to a Base32-string.

Parameters
fileFile to convert
Returns
File content as converted Base32-string
Exceptions
Exception

◆ Base32FromFileAsync()

static async Task< string > BogaNet.Encoder.Base32.Base32FromFileAsync ( string file)
static

Converts a file to a Base32-string asynchronously.

Parameters
fileFile to convert
Returns
File content as converted Base32-string
Exceptions
Exception

◆ FileFromBase32()

static bool BogaNet.Encoder.Base32.FileFromBase32 ( string file,
string base32string )
static

Converts a Base32-string to a file.

Parameters
fileFile to write the content of the Base32-string
base32stringData as Base32-string
Returns
True if the operation was successful
Exceptions
Exception

◆ FileFromBase32Async()

static async Task< bool > BogaNet.Encoder.Base32.FileFromBase32Async ( string file,
string base32string )
static

Converts a Base32-string to a file asynchronously.

Parameters
fileFile to write the content of the Base32-string
base32stringData as Base32-string
Returns
True if the operation was successful
Exceptions
Exception

◆ FromBase32String()

static byte[] BogaNet.Encoder.Base32.FromBase32String ( string base32string)
static

Converts a Base32-string to a byte-array.

Parameters
base32stringData as Base32-string
Returns
Data as byte-array
Exceptions
ArgumentNullException

◆ ToBase32String() [1/2]

static string BogaNet.Encoder.Base32.ToBase32String ( params byte[] bytes)
static

Converts a byte-array to a Base32-string.

Parameters
bytesData as byte-array
Returns
Data as encoded Base32-string
Exceptions
ArgumentNullException

◆ ToBase32String() [2/2]

static string BogaNet.Encoder.Base32.ToBase32String ( string str,
Encoding? encoding = null )
static

Converts the value of a string to a Base32-string.

Parameters
strInput string
encodingEncoding of the string (optional, default: UTF8)
Returns
String value as converted Base32-string
Exceptions
ArgumentNullException

The documentation for this class was generated from the following file: