The output string has to be allocated by the host. The return value defines the length of the string size in bytes.
Terminator adds a 0 element to the end of the BASE64 generated string, it will NOT increase the length.
If output is nullptr the length will be calculated but the string itself will not be generated.
Syntax
public const string enginedll = @"engine.dll"; [DllImport(enginedll, EntryPoint = "EncodeBase64W")] public static extern Int64 EncodeBase64W(string output, byte[] input, Int64 size, bool terminator); [DllImport(enginedll, EntryPoint = "EncodeBase64W")] public static extern Int64 EncodeBase64W(byte[] output, byte[] input, Int64 size, bool terminator);
Property output
Size: 32 bit / 4 byte (reference)???.
Property input
Size: 32 bit / 4 byte (reference)???.