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