Base91 encoder class. Partially based on: https://github.com/KvanTTT/BaseNcoding.
More...
|
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.
|
|
Base91 encoder class. Partially based on: https://github.com/KvanTTT/BaseNcoding.
◆ Base91FromFile()
static string BogaNet.Encoder.Base91.Base91FromFile |
( |
string | file | ) |
|
|
static |
Converts a file to a Base91-string.
- Parameters
-
- Returns
- File content as converted Base91-string
- Exceptions
-
◆ Base91FromFileAsync()
static async Task< string > BogaNet.Encoder.Base91.Base91FromFileAsync |
( |
string | file | ) |
|
|
static |
Converts a file to a Base91-string asynchronously.
- Parameters
-
- Returns
- File content as converted Base91-string
- Exceptions
-
◆ FileFromBase91()
static bool BogaNet.Encoder.Base91.FileFromBase91 |
( |
string | file, |
|
|
string | base91string ) |
|
static |
Converts a Base91-string to a file.
- Parameters
-
file | File to write the content of the Base91-string |
base91string | Data as Base91-string |
- Returns
- True if the operation was successful
- Exceptions
-
◆ FileFromBase91Async()
static async Task< bool > BogaNet.Encoder.Base91.FileFromBase91Async |
( |
string | file, |
|
|
string | base91string ) |
|
static |
Converts a Base91-string to a file asynchronously.
- Parameters
-
file | File to write the content of the Base91-string |
base91string | Data as Base91-string |
- Returns
- True if the operation was successful
- Exceptions
-
◆ FromBase91String()
static byte[] BogaNet.Encoder.Base91.FromBase91String |
( |
string | base91string | ) |
|
|
static |
Converts a Base91-string to a byte-array.
- Parameters
-
base91string | Data as Base91-string |
- Returns
- Data as byte-array
- Exceptions
-
◆ ToBase91String() [1/2]
static string BogaNet.Encoder.Base91.ToBase91String |
( |
byte[] | bytes | ) |
|
|
static |
Converts a byte-array to a Base91-string.
- Parameters
-
- Returns
- Data as encoded Base91-string
- Exceptions
-
◆ 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
-
str | Input string |
encoding | Encoding of the string (optional, default: UTF8) |
- Returns
- String value as converted Base91-string
- Exceptions
-
The documentation for this class was generated from the following file:
- /Users/stefanlaubenberger/Projects/CSharp/BogaNet/BogaNet.Encoder/Encoder/Base91.cs