Exemple #1
0
 public static ErrorCode RunPatternSeed(UnmanagedRantContext context, UnmanagedPattern pattern, PatternOptions options, long seed, out UnmanagedOutput output)
 {
     RantOutput o = null;
     context.Run(() => o = context.Rant.Do(pattern.Pattern, seed, options.CharLimit, options.Timeout));
     output = new UnmanagedOutput(o);
     return context.LastErrorCode;
 }
Exemple #2
0
 public static ErrorCode CompilePatternFile(UnmanagedRantContext context, string patternPath, out UnmanagedPattern patternCompiled)
 {
     RantPattern pattern = null;
     context.Run(() => pattern = RantPattern.FromFile(patternPath));
     patternCompiled = new UnmanagedPattern(pattern);
     return context.LastErrorCode;
 }
Exemple #3
0
        public static ErrorCode RunPatternSeed(UnmanagedRantContext context, UnmanagedPattern pattern, PatternOptions options, long seed, out UnmanagedOutput output)
        {
            RantOutput o = null;

            context.Run(() => o = context.Rant.Do(pattern.Pattern, seed, options.CharLimit, options.Timeout));
            output = new UnmanagedOutput(o);
            return(context.LastErrorCode);
        }
Exemple #4
0
        public static ErrorCode CompilePatternFile(UnmanagedRantContext context, string patternPath, out UnmanagedPattern patternCompiled)
        {
            RantPattern pattern = null;

            context.Run(() => pattern = RantPattern.FromFile(patternPath));
            patternCompiled           = new UnmanagedPattern(pattern);
            return(context.LastErrorCode);
        }
Exemple #5
0
 public static void ReleasePattern(UnmanagedPattern pattern) => pattern.Dispose();
Exemple #6
0
 public static void ReleasePattern(UnmanagedPattern pattern) => pattern.Dispose();