Struct MarshallsSingleton

Data transformation (marshalling) and encoding helpers.

struct MarshallsSingleton ;

Provides data transformation and encoding utility functions.

Methods

NameDescription
base64ToRaw Returns a decoded PoolByteArray corresponding to the Base64-encoded string base64_str.
base64ToUtf8 Returns a decoded string corresponding to the Base64-encoded string base64_str.
base64ToVariant Returns a decoded Variant corresponding to the Base64-encoded string base64_str. If allow_objects is true, decoding objects is allowed. Warning: Deserialized objects can contain code which gets executed. Do not use this option if the serialized object comes from untrusted sources to avoid potential security threats such as remote code execution.
rawToBase64 Returns a Base64-encoded string of a given PoolByteArray.
utf8ToBase64 Returns a Base64-encoded string of the UTF-8 string utf8_str.
variantToBase64 Returns a Base64-encoded string of the Variant variant. If full_objects is true, encoding objects is allowed (and can potentially include code).