コード例 #1
0
        public static unsafe int[] FindPositions(string byteFlags, byte[] bytes, int length = -1)
        {
            var ms     = new MemorySearch(byteFlags);
            var result = ms.Find(bytes, length);

            if (!result.Success)
            {
                return(null);
            }
            return(result.ParamPositions.Select(p => p.Position).ToArray());
        }
コード例 #2
0
        public static IntPtr[] FindPositions(string byteFlags, IntPtr ptr, uint length)
        {
            var ms     = new MemorySearch(byteFlags);
            var result = ms.Find(ptr, length);

            if (!result.Success)
            {
                return(null);
            }
            return(result.ParamPositions.Select(p => ptr + p.Position).ToArray());
        }