SerialPortStringToUnicodeByteArray Method |
Converts string to UTF16 byte array.
Namespace: ZylSoft.SerialAssembly: ZylSerialPort (in ZylSerialPort.dll) Version: 1.83.8519.34486
Syntax public static byte[] StringToUnicodeByteArray(
string text
)
Public Shared Function StringToUnicodeByteArray (
text As String
) As Byte()
public:
static array<unsigned char>^ StringToUnicodeByteArray(
String^ text
)
static member StringToUnicodeByteArray :
text : string -> byte[]
public static byte[] StringToUnicodeByteArray(
String text
)
public static function StringToUnicodeByteArray(
text : String
) : byte[]
ZylSoft.Serial.SerialPort.StringToUnicodeByteArray = function(text);
STATIC METHOD StringToUnicodeByteArray(
text AS STRING
) AS BYTE[]
No code example is currently available or this language may not be supported.
Parameters
- text String
-
String value to be converted,
Return Value
Byte
Byte array representation of the string.
See Also