Genvid Forum

Genvid Technologies

C#-Wrapper: SubmitGameData doesn't support submitting byte[]


In our current project, we’d like to use protobuf instead of json for encoding the data, mostly to reduce the size of the sent data.

However, SubmitGameData only supports strings at the moment.
This isn’t really blocking, since we created our own wrapper for byte-arrays until this gets released.

using GenvidSDKCSharp;
using System.Runtime.InteropServices;
namespace TestNamespace
    static class GenvidHacks
        [DllImport("Genvid.dll", EntryPoint = "Genvid_SubmitGameData", CallingConvention = CallingConvention.Cdecl)]
        private static extern GenvidSDK.Status Genvid_SubmitGameData(long timecode, string streamID, byte[] gameData, int gameDataSize);
        public static GenvidSDK.Status SubmitGameData(long timecode, string streamID, byte[] gameData)
            return Genvid_SubmitGameData(timecode, streamID, gameData, gameData.Length);


Hi Moritz,

Thank you for submitting this feature request. I have created a task for our devs to work on it for our next release.