Click or drag to resize

Marshalls Class

Provides data transformation and encoding utility functions.

Inheritance Hierarchy
SystemObject
  GodotMarshalls

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static class Marshalls

The Marshalls type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberSingleton
Top
Methods
  NameDescription
Public methodStatic memberBase64ToRaw

Returns a decoded Byte corresponding to the Base64-encoded string base64_str.

Public methodStatic memberBase64ToUtf8

Returns a decoded string corresponding to the Base64-encoded string base64_str.

Public methodStatic memberBase64ToVariant

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.

Public methodStatic memberRawToBase64

Returns a Base64-encoded string of a given Byte.

Public methodStatic memberUtf8ToBase64

Returns a Base64-encoded string of the UTF-8 string utf8_str.

Public methodStatic memberVariantToBase64

Returns a Base64-encoded string of the Variantvariant. If full_objects is true, encoding objects is allowed (and can potentially include code).

Top
See Also