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