Lines Matching refs:index
201 index = image.find(magic)
202 if index == -1:
246 index = image.find(magic)
247 if index == -1:
252 index += len(magic) # index points to first descriptor
253 current_tag = self.bytes_to_short(image[index:index+2])
255 index += 2 # index points to length
256 length = self.bytes_to_short(image[index:index+2])
257 index += 2 # index points to data
258 data = image[index:index+length]
272 index += length
273 index = self.align(index, 4)
274 current_tag = self.bytes_to_short(image[index:index+2])