Skip to main content

Unity.Networking.Transport.Base64

Utility class used to Decode a base64 string

Inheritance#

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

Inherited Members#

Object.Equals(Object)

Object.Equals(Object, Object)

Object.GetHashCode()

Object.GetType()

Object.MemberwiseClone()

Object.ReferenceEquals(Object, Object)

Object.ToString()

Namespace: System.Dynamic.ExpandoObject#
Assembly: transport.dll#
Syntax#
public static class Base64

FromBase64String(String, Byte*, Int32)#

Decodes base64 string and writes binary data into dest

Declaration#

public static int FromBase64String(string base64, byte *dest, int destMaxLength)

Parameters#

TypeNameDescription
System.Stringbase64Input base64 string to decode
System.Byte*destDecoded base64 will be written here
System.Int32destMaxLengthMax length that dest can handle.

Returns#

TypeDescription
System.Int32Actual length of data that was written to dest. Less or equal than destLength. On error, will throw if ENABLE_UNITY_COLLECTIONS_CHECK is defined, or return -1 otherwise.