本文告诉大家几个方法从 byte 数组找到对应的相同序列的数组 最简单的方法是进行数值判断,但是代码最少是使用Linq ,效率比较高是使用 Boyer-Moore 算法,下面就告诉大家几个算法的代码 判断数值 class ByteArrayRocks { public static IEnumerable<int> IndexOf(byte[] source, int start, byte[] pattern) { if (IsEmptyLocate(source, start, patte…