Skip to content

Instantly share code, notes, and snippets.

@mudgen
Created September 24, 2013 15:38
Show Gist options
  • Select an option

  • Save mudgen/6686654 to your computer and use it in GitHub Desktop.

Select an option

Save mudgen/6686654 to your computer and use it in GitHub Desktop.
Binary Utilities
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