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)

Return PoolByteArray of a given base64 encoded String.

    public static string Base64ToUtf8(string base64Str)

Return utf8 String of a given base64 encoded String.

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

Return Variant of a given base64 encoded String. When allowObjects 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).

    public static string RawToBase64(byte[] array)

Return base64 encoded String of a given PoolByteArray.

    public static string Utf8ToBase64(string utf8Str)

Return base64 encoded String of a given utf8 String.

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

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

Tags: