Base16 (aka Hex) encoder class.
More...
|
| static byte[] | FromBase16String (string base16string) |
| | Converts a Base16-string to a byte-array.
|
| |
| static string | ToBase16String (byte[] bytes, bool addPrefix=false) |
| | Converts a byte-array to a Base16-string.
|
| |
| static string | ToBase16String< T > (T number, bool addPrefix=false, bool useFullLength=false) |
| | Converts the value of a Number to a Base16-string.
|
| |
| static string | ToBase16String (string str, bool addPrefix=false, Encoding? encoding=null) |
| | Converts the value of a string to a Base16-string.
|
| |
| static string | Base16FromFile (string file) |
| | Converts a file to a Base16-string.
|
| |
| static async Task< string > | Base16FromFileAsync (string file) |
| | Converts a file to a Base16-string asynchronously.
|
| |
| static bool | FileFromBase16 (string file, string base16string) |
| | Converts a Base16-string to a file.
|
| |
| static async Task< bool > | FileFromBase16Async (string file, string base16string) |
| | Converts a Base16-string to a file asynchronously.
|
| |
Base16 (aka Hex) encoder class.
◆ Base16FromFile()
| static string BogaNet.Encoder.Base16.Base16FromFile |
( |
string | file | ) |
|
|
static |
Converts a file to a Base16-string.
- Parameters
-
- Returns
- File content as converted Base16-string
- Exceptions
-
◆ Base16FromFileAsync()
| static async Task< string > BogaNet.Encoder.Base16.Base16FromFileAsync |
( |
string | file | ) |
|
|
static |
Converts a file to a Base16-string asynchronously.
- Parameters
-
- Returns
- File content as converted Base16-string
- Exceptions
-
◆ FileFromBase16()
| static bool BogaNet.Encoder.Base16.FileFromBase16 |
( |
string | file, |
|
|
string | base16string ) |
|
static |
Converts a Base16-string to a file.
- Parameters
-
| file | File to write the content of the Base16-string |
| base16string | Data as Base16-string |
- Returns
- True if the operation was successful
- Exceptions
-
◆ FileFromBase16Async()
| static async Task< bool > BogaNet.Encoder.Base16.FileFromBase16Async |
( |
string | file, |
|
|
string | base16string ) |
|
static |
Converts a Base16-string to a file asynchronously.
- Parameters
-
| file | File to write the content of the Base16-string |
| base16string | Data as Base16-string |
- Returns
- True if the operation was successful
- Exceptions
-
◆ FromBase16String()
| static byte[] BogaNet.Encoder.Base16.FromBase16String |
( |
string | base16string | ) |
|
|
static |
Converts a Base16-string to a byte-array.
- Parameters
-
| base16string | Data as Base16-string |
- Returns
- Data as byte-array
- Exceptions
-
◆ ToBase16String() [1/2]
| static string BogaNet.Encoder.Base16.ToBase16String |
( |
byte[] | bytes, |
|
|
bool | addPrefix = false ) |
|
static |
Converts a byte-array to a Base16-string.
- Parameters
-
| bytes | Data as byte-array |
| addPrefix | Add "0x"-as prefix (optional, default: false) |
- Returns
- Data as encoded Base16-string
- Exceptions
-
◆ ToBase16String() [2/2]
| static string BogaNet.Encoder.Base16.ToBase16String |
( |
string | str, |
|
|
bool | addPrefix = false, |
|
|
Encoding? | encoding = null ) |
|
static |
Converts the value of a string to a Base16-string.
- Parameters
-
| str | Input string |
| addPrefix | Add "0x"-as prefix (optional, default: false) |
| encoding | Encoding of the string (optional, default: UTF8) |
- Returns
- String value as converted Base16-string
- Exceptions
-
◆ ToBase16String< T >()
Converts the value of a Number to a Base16-string.
- Parameters
-
| number | Given value |
| addPrefix | Add "0x"-as prefix (optional, default: false) |
| useFullLength | Use the full length of the Number type (optional, default: false) |
- Returns
- Number as converted Base16-string
- Exceptions
-
The documentation for this class was generated from the following file:
- /Users/stefanlaubenberger/Projects/CSharp/BogaNet/BogaNet.Encoder/Encoder/Base16.cs