2025-06-21 00:47:16
2025-06-21 18:05:43
直接找是不支持的,只能自己写
我这有一种变通方法你可以试试,原理是把byte当作string来操作
Dim a As Byte() = {0, 1, 2, 3, 4, 5, 6}
Dim b As Byte() = {2, 3, 4}
Dim s As String = System.Text.Encoding.ASCII.GetString(a)
Dim s2 As String = System.Text.Encoding.ASCII.GetString(b)
Debug.Print(s.IndexOf(s2))
2025-06-21 00:55:01