C# Class NStandard.Converts.BytesConvert

Exibir arquivo Open project: zmjack/NStandard

Public Methods

Method Description
Base64 ( Array bytes ) : string

Converts an array of 8-bit unsigned integers to its equivalent string representation that is encoded with base-64 digits.

HexString ( Array bytes, string separator ) : string

Converts an array of 8-bit unsigned integers to its equivalent string representation that is encoded with hex digits.

String ( Array bytes ) : string

Decodes all the bytes in the specified byte(UTF-8) array into a string.

String ( Array bytes, Encoding encoding ) : string

Decodes all the bytes in the specified byte array into a string.

String ( Array bytes, string encoding ) : string

Decodes all the bytes in the specified byte array into a string.

ToHexString ( Array bytes ) : string

Converts an array of 8-bit unsigned integers to its equivalent string representation that is encoded with hex digits.

UrlSafeBase64 ( Array bytes ) : string

Converts an array of 8-bit unsigned integers to its equivalent string representation that is encoded with url safe base-64 digits.

Method Details

Base64() public static method

Converts an array of 8-bit unsigned integers to its equivalent string representation that is encoded with base-64 digits.
public static Base64 ( Array bytes ) : string
bytes Array
return string

HexString() public static method

Converts an array of 8-bit unsigned integers to its equivalent string representation that is encoded with hex digits.
public static HexString ( Array bytes, string separator ) : string
bytes Array
separator string
return string

String() public static method

Decodes all the bytes in the specified byte(UTF-8) array into a string.
public static String ( Array bytes ) : string
bytes Array
return string

String() public static method

Decodes all the bytes in the specified byte array into a string.
public static String ( Array bytes, Encoding encoding ) : string
bytes Array
encoding Encoding
return string

String() public static method

Decodes all the bytes in the specified byte array into a string.
public static String ( Array bytes, string encoding ) : string
bytes Array
encoding string
return string

ToHexString() public static method

Converts an array of 8-bit unsigned integers to its equivalent string representation that is encoded with hex digits.
public static ToHexString ( Array bytes ) : string
bytes Array
return string

UrlSafeBase64() public static method

Converts an array of 8-bit unsigned integers to its equivalent string representation that is encoded with url safe base-64 digits.
public static UrlSafeBase64 ( Array bytes ) : string
bytes Array
return string