Changeset 38d2a8b in ammosreader for ammosreader/AmmosGlobalFrameHeader.py


Ignore:
Timestamp:
06/30/22 11:35:30 (3 years ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
AmmosSource, guix
Children:
6ded698
Parents:
ca6263a
Message:

set endiness explicitly to little on every struct.unpack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ammosreader/AmmosGlobalFrameHeader.py

    rca6263a r38d2a8b  
    55
    66    MAGIC_WORD = "726574fb"
     7    HEADER_SIZE = 24
    78
    89    @classmethod
    910    def from_bytes(cls, bytes):
    1011
    11         elements = struct.unpack('4s4s4s4s4s4s', bytes)
     12        elements = struct.unpack('<4s4s4s4s4s4s', bytes)
    1213
    1314        magic_word = elements[0].hex()
Note: See TracChangeset for help on using the changeset viewer.