IMathLinkGetByteString Method
Reads a Wolfram Language string as an array of bytes.
Namespace: Wolfram.NETLinkAssembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
byte[] GetByteString(
int missing
)
Function GetByteString (
missing As Integer
) As Byte()
array<unsigned char>^ GetByteString(
int missing
)
abstract GetByteString :
missing : int -> byte[]
- missing Int32
- The byte to use in place of non-ASCII characters (i.e., 16-bit characters).
Byte
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.
MathLinkException | If the waiting data cannot be read in this format, or on any other MathLink error. |