2017-09-12 20:42:36 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2019-04-01 10:33:56 +00:00
<class name= "Marshalls" inherits= "Reference" category= "Core" version= "3.2" >
2017-09-12 20:42:36 +00:00
<brief_description >
2017-09-12 22:18:26 +00:00
Data transformation (marshalling) and encoding helpers.
2017-09-12 20:42:36 +00:00
</brief_description>
<description >
2017-09-12 22:18:26 +00:00
Provides data transformation and encoding utility functions.
2017-09-12 20:42:36 +00:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "base64_to_raw" >
<return type= "PoolByteArray" >
</return>
<argument index= "0" name= "base64_str" type= "String" >
</argument>
<description >
2019-06-21 23:04:47 +00:00
Returns a decoded [PoolByteArray] corresponding to the Base64-encoded string [code]base64_str[/code].
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "base64_to_utf8" >
<return type= "String" >
</return>
<argument index= "0" name= "base64_str" type= "String" >
</argument>
<description >
2019-06-21 23:04:47 +00:00
Returns a decoded string corresponding to the Base64-encoded string [code]base64_str[/code].
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "base64_to_variant" >
<return type= "Variant" >
</return>
<argument index= "0" name= "base64_str" type= "String" >
</argument>
2019-03-26 15:52:42 +00:00
<argument index= "1" name= "allow_objects" type= "bool" default= "false" >
</argument>
2017-09-12 20:42:36 +00:00
<description >
2019-06-21 23:04:47 +00:00
Returns a decoded [Variant] corresponding to the Base64-encoded string [code]base64_str[/code]. If [code]allow_objects[/code] is [code]true[/code], decoding objects is allowed.
[b]Warning:[/b] 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.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "raw_to_base64" >
<return type= "String" >
</return>
<argument index= "0" name= "array" type= "PoolByteArray" >
</argument>
<description >
2019-06-21 23:04:47 +00:00
Returns a Base64-encoded string of a given [PoolByteArray].
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "utf8_to_base64" >
<return type= "String" >
</return>
<argument index= "0" name= "utf8_str" type= "String" >
</argument>
<description >
2019-06-21 23:04:47 +00:00
Returns a Base64-encoded string of the UTF-8 string [code]utf8_str[/code].
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "variant_to_base64" >
<return type= "String" >
</return>
<argument index= "0" name= "variant" type= "Variant" >
</argument>
2019-03-26 15:52:42 +00:00
<argument index= "1" name= "full_objects" type= "bool" default= "false" >
</argument>
2017-09-12 20:42:36 +00:00
<description >
2019-06-21 23:04:47 +00:00
Returns a Base64-encoded string of the [Variant] [code]variant[/code]. If [code]full_objects[/code] is [code]true[/code], encoding objects is allowed (and can potentially include code).
2017-09-12 20:42:36 +00:00
</description>
</method>
</methods>
<constants >
</constants>
</class>