Marshalls
Inherits: Object Data transformation (marshalling) and encoding helpers.
Description
Provides data transformation and encoding utility functions.
Methods
Method Descriptions
- PoolByteArray base64_to_raw ( String base64_str )
PoolByteArray corresponding to the Base64-encoded string
base64_str.
- String base64_to_utf8 ( String base64_str )
base64_str.
- Variant base64_to_variant ( String base64_str, bool allow_objects=false )
Variant corresponding to the Base64-encoded string
base64_str. Ifallow_objectsistrue, 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.
- String raw_to_base64 ( PoolByteArray array ) PoolByteArray.
- String utf8_to_base64 ( String utf8_str )
utf8_str.
- String variant_to_base64 ( Variant variant, bool full_objects=false )
Variant
variant. Iffull_objectsistrue, encoding objects is allowed (and can potentially include code).
