D | fat16copy.py | 42 def read_le_short(f): argument 44 return struct.unpack("<H", f.read(2))[0] 46 def read_le_long(f): argument 48 return struct.unpack("<L", f.read(4))[0] 50 def read_byte(f): argument 52 return struct.unpack("B", f.read(1))[0] 54 def skip_bytes(f, n): argument 56 f.seek(n, os.SEEK_CUR) 58 def skip_short(f): argument 60 skip_bytes(f, 2) [all …]
|