especta 0 Newbie Poster

Hi
I have constant Byte Array like This:

Array = 0102030405060708091011121314151617181920212223242526272829303132

and second Array not constant;

Like This

[01] Array 000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000

i need to calculate xor from first array (static) and secod array dinamic

but controled by This value [01] if 01 then calculate xor only
1 byte from first array and second array if [02] first + second byte
first array and second array xor only if [03] 1+2+3 byte first array and second array xor only etc.....
If second dinamic Array is biger then first then just to continue to calculate xor from 1 array from begining?

how to do This?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.