Returns string decoding the array of bytes.

Namespace:  SGP.XUtility
Assembly:  SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public static string FromBuffer(
	byte[] buffer,
	int startIndex,
	int length,
	Encoding encoding
)

Parameters

buffer
Type: array< System..::.Byte >[]()[]
Source array of bytes.
startIndex
Type: System..::.Int32
The index of the first character in the array.
length
Type: System..::.Int32
The length of bytes.
encoding
Type: System.Text..::.Encoding
Encoding in the array.

Return Value

String which originates from the decoded part of the array buffer from startIndex, length length and decoding encoding.

Exceptions

ExceptionCondition
System..::.ArgumentNullException buffer is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also