C
Chris
I'd like to do something like this:
byte [] array0 = ...
byte [] array1 = ...
array0 |= array1;
The idea being that all the bytes in array0 get ORd with the ones in
array1. Is there an efficient way to do this?
This is just too ugly and unnecessarily slow:
for (int i = 0; i < array0.length; i++) {
array0 |= array1;
}
byte [] array0 = ...
byte [] array1 = ...
array0 |= array1;
The idea being that all the bytes in array0 get ORd with the ones in
array1. Is there an efficient way to do this?
This is just too ugly and unnecessarily slow:
for (int i = 0; i < array0.length; i++) {
array0 |= array1;
}