diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2014-09-15 13:20:21 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2014-09-15 13:20:47 -0400 |
commit | 0fd44680eca74c74e4edee341808b708acae61ba (patch) | |
tree | a931059a3f8ee48b1a0b3703f5cc8dcaa607c6d6 | |
parent | f6d4a8588d9eba8139ee399cd53fbdc0b1a62cf7 (diff) |
Unpack 8-byte unsigned long long integers.
-rw-r--r-- | msodumper/globals.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/msodumper/globals.py b/msodumper/globals.py index 68d8254..8e30194 100644 --- a/msodumper/globals.py +++ b/msodumper/globals.py @@ -449,6 +449,9 @@ def getUnsignedInt (bytes): elif n == 4: # int, long - 4 bytes return struct.unpack('<L', text)[0] + elif n == 8: + # long long - 8 bytes + return struct.unpack('<Q', text)[0] raise ByteConvertError |