Exemple #1
0
            public ConfigNode(AARTSAAPI_Device dev, AARTSAAPI_Config cfg)
            {
                Device     = dev;
                Config     = cfg;
                ConfigInfo = new AARTSAAPI_ConfigInfo(false);

                AARTSAAPI_ConfigGetInfo(ref Device, ref Config, ref ConfigInfo);
                char[] str    = new char[1024];
                long   strLen = str.Length;

                AARTSAAPI_ConfigGetString(ref Device, ref Config, str, ref strLen);
                ValueString = new string(str, 0, (int)Math.Min(strLen, str.ToList().IndexOf((char)0)));
            }
Exemple #2
0
 public static extern AARTSAAPI_Result AARTSAAPI_ConfigGetInfo(ref AARTSAAPI_Device dhandle, ref AARTSAAPI_Config config, ref AARTSAAPI_ConfigInfo cinfo);