I have the following byte arrays.
byte[] subArray = { 0x00, 0x01, 0x00, 0x01 };
byte[] array = { 0x1A, 0x65, 0x3E, 0x00, 0x01, 0x00, 0x01, 0x2B, 0x4C, 0xAA };
I would like to identify the subarray and load the preceding bytes into another byte array i.e. result should be as below.
byte[] result = {0x2B, 0x4C, 0xAA }
I want to load everything after the subarray.
Any help would be appreciated.
Thanks.