I receive a byte array and have to remove all 7Dh’s from the array and exclusive or the following byte with 20h in order to recover the original data byte.
What is the best way to do this?
I receive a byte array and have to remove all 7Dh’s from the array and exclusive or the following byte with 20h in order to recover the original data byte.
What is the best way to do this?
Copyright © 2021 Jogjafile Inc.
Well, the first thing to note is that you can't really remove a value from an array, so you can't do it in situ; so perhaps something like: