##// END OF EJS Templates
readmarkers: use unpacker for fixed header
Matt Mackall -
r23797:eb12c3cf default
parent child Browse files
Show More
@@ -288,9 +288,10 b' def _fm0decodemeta(data):'
288 def _fm1readmarkers(data, off=0):
288 def _fm1readmarkers(data, off=0):
289 # Loop on markers
289 # Loop on markers
290 l = len(data)
290 l = len(data)
291 ufixed = util.unpacker(_fm1fixed)
291 while off + _fm1fsize <= l:
292 while off + _fm1fsize <= l:
292 # read fixed part
293 # read fixed part
293 fixeddata = _unpack(_fm1fixed, data[off:off + _fm1fsize])
294 fixeddata = ufixed(data[off:off + _fm1fsize])
294 off += _fm1fsize
295 off += _fm1fsize
295 ttsize, seconds, tz, flags, numsuc, numpar, nummeta, prec = fixeddata
296 ttsize, seconds, tz, flags, numsuc, numpar, nummeta, prec = fixeddata
296
297
General Comments 0
You need to be logged in to leave comments. Login now