[ Version ( since = "2.36" ) ]
public Bytes get_data_as_bytes ()
Returns a pointer to the serialized form of a Variant instance.
The semantics of this function are exactly the same as get_data, except that the returned Bytes holds a reference to the variant data.
This function cannot fail, even for corrupted variants. In that case it will return a Bytes filled with nul bytes.
| this |
a Variant |
|
A new Bytes representing the variant data |