public static string StructToString(StringStruct text)
        {
            var    sizeText = System.Array.IndexOf(text.Text, (byte)0);
            string Text     = System.Text.Encoding.UTF8.GetString(text.Text, 0, sizeText < 0 ? 255 : sizeText);

            return(Text);
        }
Example #2
0
 public static extern int GetFileDirectoryOut(out StringStruct text);
 public static int GetFileDirectoryOut(out StringStruct text)
 {
     return(CarModelRecognize.GetFileDirectoryOut(out text));
 }