.NET/Link API Version 1.7 USE FRAMES

IMathLink.GetByteString Method 

Reads a Mathematica string as an array of bytes.

[Visual Basic]
Function GetByteString( _
   ByVal missing As Integer _
) As Byte()
[C#]
byte[] GetByteString(
   int missing
);

Parameters

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

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

Exception Type Condition
MathLinkException If the waiting data cannot be read in this format, or on any other MathLink error.

See Also

IMathLink Interface | Wolfram.NETLink Namespace | GetString