Created
July 27, 2014 00:11
-
-
Save jdiez17/22c55213211e3ea4a409 to your computer and use it in GitHub Desktop.
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
def long(data, offset, size): | |
n = 0 | |
for i in range(size): | |
shft = ((size-i-1)*8) | |
n |= data[offset+i] << shft | |
return n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment