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

Base91 encoder class. Partially based on: https://github.com/KvanTTT/BaseNcoding. More...

Static Public Member Functions

static byte[] FromBase91String (string base91string)
 Converts a Base91-string to a byte-array.
 
static string ToBase91String (byte[] bytes)
 Converts a byte-array to a Base91-string.
 
static string ToBase91String (string str, Encoding? encoding=null)
 Converts the value of a string to a Base91-string.
 
static string Base91FromFile (string file)
 Converts a file to a Base91-string.
 
static async Task< string > Base91FromFileAsync (string file)
 Converts a file to a Base91-string asynchronously.
 
static bool FileFromBase91 (string file, string base91string)
 Converts a Base91-string to a file.
 
static async Task< bool > FileFromBase91Async (string file, string base91string)
 Converts a Base91-string to a file asynchronously.
 

Detailed Description

Base91 encoder class. Partially based on: https://github.com/KvanTTT/BaseNcoding.

Member Function Documentation

◆ Base91FromFile()

static string BogaNet.Encoder.Base91.Base91FromFile ( string file)
static

Converts a file to a Base91-string.

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

◆ Base91FromFileAsync()

static async Task< string > BogaNet.Encoder.Base91.Base91FromFileAsync ( string file)
static

Converts a file to a Base91-string asynchronously.

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

◆ FileFromBase91()

static bool BogaNet.Encoder.Base91.FileFromBase91 ( string file,
string base91string )
static

Converts a Base91-string to a file.

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

◆ FileFromBase91Async()

static async Task< bool > BogaNet.Encoder.Base91.FileFromBase91Async ( string file,
string base91string )
static

Converts a Base91-string to a file asynchronously.

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

◆ FromBase91String()

static byte[] BogaNet.Encoder.Base91.FromBase91String ( string base91string)
static

Converts a Base91-string to a byte-array.

Parameters
base91stringData as Base91-string
Returns
Data as byte-array
Exceptions
ArgumentNullException

◆ ToBase91String() [1/2]

static string BogaNet.Encoder.Base91.ToBase91String ( byte[] bytes)
static

Converts a byte-array to a Base91-string.

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

◆ ToBase91String() [2/2]

static string BogaNet.Encoder.Base91.ToBase91String ( string str,
Encoding? encoding = null )
static

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

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

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