Appearance
ByteToString Method
Definition
- Namespace:
JASE.Extensions - Assembly:
JASE.Primitives.dll
Overloads
| Name | Description |
|---|---|
string ByteToString(byte[] input, Encoding encoding = null, int count = null) | Convert byte array to string based on the appropriate encoding |
string ByteToString(byte[] input, bool removeEncoding, Encoding encoding = null, int count = null) | Convert byte array to string based on the appropriate encoding |
string ByteToString(byte[] input, bool removeEncoding, Encoding encoding = null, int count = null)
csharp
string ByteToString(byte[] input, bool removeEncoding, Encoding encoding = null, int count = null)Convert byte array to string based on the appropriate encoding
Parameters
| Name | Description |
|---|---|
count | # of items in the array to convert, starting at index 0 |
encoding | Encoding to use, will default to System.Text.Encoding.UTF8 if null is passed |
input | Array of bytes for conversion |
removeEncoding | Remove encoding bytes if they exist in input before conversion to a string |
Returns
string value after conversion
string ByteToString(byte[] input, Encoding encoding = null, int count = null)
csharp
string ByteToString(byte[] input, Encoding encoding = null, int count = null)Convert byte array to string based on the appropriate encoding
Parameters
| Name | Description |
|---|---|
count | # of items in the array to convert, starting at index 0 |
encoding | Encoding to use, will default to System.Text.Encoding.UTF8 if null is passed |
input | Array of bytes for conversion |
Returns
string value after conversion