Exemple #1
0
 internal static unsafe void InitializeCommandLineArgsW(int argc, char **argv)
 {
     string[] args = new string[argc];
     for (int i = 0; i < argc; ++i)
     {
         args[i] = new string(argv[i]);
     }
     EnvironmentAugments.SetCommandLineArgs(args);
 }
Exemple #2
0
 internal static unsafe void InitializeCommandLineArgs(int argc, byte **argv)
 {
     string[] args = new string[argc];
     for (int i = 0; i < argc; ++i)
     {
         byte *argval = argv[i];
         int   len    = CStrLen(argval);
         args[i] = Encoding.UTF8.GetString(argval, len);
     }
     EnvironmentAugments.SetCommandLineArgs(args);
 }