Created
September 24, 2013 15:38
-
-
Save mudgen/6686654 to your computer and use it in GitHub Desktop.
Binary Utilities
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| global system,app | |
| import system,app | |
| def bytesEqual(bytes1,bytes2): | |
| equal = True | |
| for pair in zip(bytes1,bytes2): | |
| if pair[0] != pair[1]: | |
| return False | |
| return True | |
| def bytesDiff(bytes1,bytes2): | |
| diff = [] | |
| equal = True | |
| for pair in zip(bytes1,bytes2): | |
| if pair[0] != pair[1]: | |
| diff.append((pair[0],pair[1])) | |
| return diff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment