W3cubDocs

/Godot 3.1

Marshalls

Inherits: Reference < Object

Category: Core

Brief Description

Data transformation (marshalling) and encoding helpers.

Methods

PoolByteArray base64_to_raw ( String base64_str )
String base64_to_utf8 ( String base64_str )
Variant base64_to_variant ( String base64_str, bool allow_objects=false )
String raw_to_base64 ( PoolByteArray array )
String utf8_to_base64 ( String utf8_str )
String variant_to_base64 ( Variant variant, bool full_objects=false )

Description

Provides data transformation and encoding utility functions.

Method Descriptions

PoolByteArray base64_to_raw ( String base64_str )

Returns PoolByteArray of a given base64 encoded String.

String base64_to_utf8 ( String base64_str )

Returns utf8 String of a given base64 encoded String.

Variant base64_to_variant ( String base64_str, bool allow_objects=false )

Returns Variant of a given base64 encoded String. When allow_objects is true decoding objects is allowed.

WARNING: Deserialized object can contain code which gets executed. Do not use this option if the serialized object comes from untrusted sources to avoid potential security threats (remote code execution).

String raw_to_base64 ( PoolByteArray array )

Returns base64 encoded String of a given PoolByteArray.

String utf8_to_base64 ( String utf8_str )

Returns base64 encoded String of a given utf8 String.

String variant_to_base64 ( Variant variant, bool full_objects=false )

Returns base64 encoded String of a given Variant. When full_objects is true encoding objects is allowed (and can potentially include code).

© 2014–2019 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.1/classes/class_marshalls.html