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 bit_is_set(byteval,idx): | |
return ((byteval&(1<<idx))!=0) | |
def read_int_bbo(f, s, signed=False): | |
return int.from_bytes(f.read(s), byteorder='big', signed=signed) | |
def decompressECD(f, out_fname): #file handle at ECD start position, out file name | |
magic = f.read(3) | |
if not magic == b'ECD': | |
return |
NewerOlder