作者:葛妹秀 | 来源:互联网 | 2023-05-18 18:16
IhaveaBytearray:我有一个字节数组:BYTEBuffer[20000];thisarraycontainsthefollowingdata:字节缓冲区[
I have a Byte array :
我有一个字节数组:
BYTE Buffer[20000];
this array contains the following data:
字节缓冲区[20000];该数组包含以下数据:
00FFFFFFFFFFFF0010AC4C4053433442341401030A2F1E78EEEE95A3544C99260F5054A54B00714F8180B3000101010101010101010121399030621A274068B03600DA281100001C000000FF003457314D44304353423443530A000000FC0044454C4C2050323231300A2020000000FD00384B1E5310000A20202020202000FA
00 ffffffffffff0010ac4c4053433442341401030a2f1e78eeee95a3544c99260f5054a54b00714f8180b3000101010101010101010121399030621a274068b03600da281100001c000000ff003457314d44304353423443530a000000fc0044454c4c2050323231300a2020000000fd00384b1e5310000a20202020202000fa
My question is how can i search this array for a pattern like "000000FC
"? I don't really think it is important, but i need the index where i can find my pattern too. Could someone provide an example for this, because i don't really understand this :(
我的问题是,如何搜索这个数组以获得“000000FC”这样的模式?我不认为这很重要,但我需要索引,我也可以找到我的模式。有人能举个例子吗,因为我不太明白
3 个解决方案