Inheritance #
- AudioServer
- CameraServer
- ClassDB
- DisplayServer
- EditorFileSystemDirectory
- EditorInterface
- EditorPaths
- EditorSelection
- EditorUndoRedoManager
- EditorVCSInterface
- Engine
- EngineDebugger
- FramebufferCacheRD
- GDExtensionManager
- Geometry2D
- Geometry3D
- IP
- Input
- InputMap
- JNISingleton
- JSONRPC
- JavaClassWrapper
- JavaScriptBridge
- MainLoop (1)
- Marshalls
- MovieWriter
- NativeMenu
- NavigationMeshGenerator
- NavigationServer2D
- NavigationServer3D
- Node (21)
- OS
- OpenXRExtensionWrapperExtension
- OpenXRInteractionProfileMetadata
- Performance
- PhysicsDirectBodyState2D (1)
- PhysicsDirectBodyState3D (1)
- PhysicsDirectSpaceState2D (1)
- PhysicsDirectSpaceState3D (1)
- PhysicsServer2D (1)
- PhysicsServer2DManager
- PhysicsServer3D (1)
- PhysicsServer3DManager
- PhysicsServer3DRendering
ServerHandler
- ProjectSettings
- RefCounted (121)
- RenderData (2)
- RenderSceneData (2)
- RenderingDevice
- RenderingServer
- ResourceLoader
- ResourceSaver
- ResourceUID
- ScriptLanguage (1)
- ShaderIncludeDB
- TextServerManager
- ThemeDB
- TileData
- Time
- TranslationServer
- TreeItem
- UndoRedo
- UniformSetCacheRD
- WorkerThreadPool
- XRServer
- XRVRS
Table of contents
-
func base64_to_raw(base64_str: String) -> PackedByteArray -
func base64_to_utf8(base64_str: String) -> String -
func base64_to_variant(allow_objects: bool = false) -> Variant -
func raw_to_base64(array: PackedByteArray) -> String -
func utf8_to_base64(utf8_str: String) -> String -
func variant_to_base64(full_objects: bool = false) -> String
Marshalls #
is_instantiable, core, not_builtin_classes, singleton
Data transformation (marshaling) and encoding helpers.
Provides data transformation and encoding utility functions.
Members #
Methods #
func base64_to_raw(base64_str: String) -> PackedByteArray#
Returns a decoded PackedByteArray corresponding to the Base64-encoded string base64_str.
func base64_to_utf8(base64_str: String) -> String#
Returns a decoded string corresponding to the Base64-encoded string base64_str.
func base64_to_variant(allow_objects: bool = false) -> Variant#
Returns a decoded Variant corresponding to the Base64-encoded string base64_str. If allow_objects is true, decoding objects is allowed.
Internally, this uses the same decoding mechanism as the @GlobalScope.bytes_to_var method.
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.
func raw_to_base64(array: PackedByteArray) -> String#
Returns a Base64-encoded string of a given PackedByteArray.
func utf8_to_base64(utf8_str: String) -> String#
Returns a Base64-encoded string of the UTF-8 string utf8_str.
func variant_to_base64(full_objects: bool = false) -> String#
Returns a Base64-encoded string of the Variant variant. If full_objects is true, encoding objects is allowed (and can potentially include code).
Internally, this uses the same encoding mechanism as the @GlobalScope.var_to_bytes method.