MessagePackObject Constructor (Byte, Boolean) |
Initializes a new instance of the
Byte[] type which wraps
Byte[] instance with specified manner.
Namespace: MsgPackAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax public MessagePackObject(
byte[] value,
bool isBinary
)
Public Sub New (
value As Byte(),
isBinary As Boolean
)
public:
MessagePackObject(
array<unsigned char>^ value,
bool isBinary
)
new :
value : byte[] *
isBinary : bool -> MessagePackObject
Parameters
- value
- Type: SystemByte
A bytes array to be wrapped. - isBinary
- Type: SystemBoolean
true if value always should be binary; false, otherwise.
Remarks
When the
isBinary is
true, then resulting object represents binary even if the
value is valid utf-8 sequence,
that is, its
UnderlyingType should be
Byte[].
On the other hand, when contrast, the
isBinary is
false, and if the
value is valid utf-8,
then the resulting object can be
String,
and its
UnderlyingType should be
String.
See Also