IMathLinkGetByteString Method

Reads a Wolfram Language string as an array of bytes.

Definition

Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
byte[] GetByteString(
	int missing
)

Parameters

missing  Int32
The byte to use in place of non-ASCII characters (i.e., 16-bit characters).

Return Value

Byte

Remarks

In contrast with GetString, this method strips the incoming (16-bit Unicode) character data into a single-byte representation. Characters that cannot be represented faithfully in single-byte form are replaced by the byte specified by the missing parameter. This method is primarily useful if you know the incoming data contains only ASCII characters and you want the data in the form of a byte array.

Exceptions

MathLinkExceptionIf the waiting data cannot be read in this format, or on any other MathLink error.

See Also