Variant.bytestring


Description:

[ Version ( since = "2.26" ) ]
public Variant.bytestring (string value)

Creates an array-of-bytes Variant with the contents of string.

This function is just like Variant.string except that the string need not be valid UTF-8.

The nul terminator character at the end of the string is stored in the array.

Parameters:

string

a normal nul-terminated string in no particular encoding

Returns:

a floating reference to a new bytestring Variant instance