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

Base62 encoder class. Partially based on: https://github.com/JoyMoe/Base62.Net. More...

Static Public Member Functions

static byte[] FromBase62String (string base62string)
 Converts a Base62-string to a byte-array.
 
static string ToBase62String (byte[] bytes)
 Converts a byte-array to a Base62-string.
 
static string ToBase62String (string str, Encoding? encoding=null)
 Converts the value of a string to a Base62-string.
 
static string Base62FromFile (string file)
 Converts a file to a Base62-string.
 
static async Task< string > Base62FromFileAsync (string file)
 Converts a file to a Base62-string asynchronously.
 
static bool FileFromBase62 (string file, string base62string)
 Converts a Base62-string to a file.
 
static async Task< bool > FileFromBase62Async (string file, string base62string)
 Converts a Base62-string to a file asynchronously.
 

Detailed Description

Base62 encoder class. Partially based on: https://github.com/JoyMoe/Base62.Net.

Member Function Documentation

◆ Base62FromFile()

static string BogaNet.Encoder.Base62.Base62FromFile ( string file)
static

Converts a file to a Base62-string.

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

◆ Base62FromFileAsync()

static async Task< string > BogaNet.Encoder.Base62.Base62FromFileAsync ( string file)
static

Converts a file to a Base62-string asynchronously.

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

◆ FileFromBase62()

static bool BogaNet.Encoder.Base62.FileFromBase62 ( string file,
string base62string )
static

Converts a Base62-string to a file.

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

◆ FileFromBase62Async()

static async Task< bool > BogaNet.Encoder.Base62.FileFromBase62Async ( string file,
string base62string )
static

Converts a Base62-string to a file asynchronously.

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

◆ FromBase62String()

static byte[] BogaNet.Encoder.Base62.FromBase62String ( string base62string)
static

Converts a Base62-string to a byte-array.

Parameters
base62stringData as Base62-string
Returns
Data as byte-array
Exceptions
ArgumentNullException

◆ ToBase62String() [1/2]

static string BogaNet.Encoder.Base62.ToBase62String ( byte[] bytes)
static

Converts a byte-array to a Base62-string.

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

◆ ToBase62String() [2/2]

static string BogaNet.Encoder.Base62.ToBase62String ( string str,
Encoding? encoding = null )
static

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

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

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