Click or drag to resize
UnpackingUnpackString Method (Byte, Encoding)
Unpacks String value from the head of specified byte array with specified encoding.

Namespace: MsgPack
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
public static UnpackingResult<string> UnpackString(
	byte[] source,
	Encoding encoding
)

Parameters

source
Type: SystemByte
The byte array which contains Message Pack binary stream.
encoding
Type: System.TextEncoding
The Encoding to decode binary stream.

Return Value

Type: UnpackingResultString
The UnpackingResultT of String which contains unpacked String value and processed bytes count.
Exceptions
ExceptionCondition
ArgumentNullExceptionsource is null. Or, encoding is null.
ArgumentExceptionsource is empty.
UnpackExceptionsource is not valid MessagePack stream.
MessageTypeException The unpacked result in the source is not compatible to String. Or, the unpacked result in the source is invalid as UTF-8 encoded byte stream.
Remarks
See Also