Data transformation (marshalling) and encoding helpers.
    public static class Marshalls

Provides data transformation and encoding utility functions.

Inheritance Chain

Static Properties

    public static Object Singleton { get; }

Static Methods

    public static byte[] Base64ToRaw(string base64Str)

Returns a decoded PoolByteArray corresponding to the Base64-encoded string base64Str.

    public static string Base64ToUtf8(string base64Str)

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

    public static object Base64ToVariant(string base64Str, bool allowObjects = false)

Returns a decoded Variant corresponding to the Base64-encoded string base64Str. If allowObjects 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 static string RawToBase64(byte[] array)

Returns a Base64-encoded string of a given PoolByteArray.

    public static string Utf8ToBase64(string utf8Str)

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

    public static string VariantToBase64(object variant, bool fullObjects = false)

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

Tags: