Lines Matching refs:self
46 def __init__(self, output, bootdir, edt): argument
47 self.find_slots(edt)
53 self.output = output
55 def find_slots(self, edt): argument
80 self.offsets = offsets
81 self.sizes = sizes
83 def add_image(self, source, partition): argument
84 with open(self.output, 'ab') as ofd:
86 print("partition {}, pos={}, offset={}".format(partition, pos, self.offsets[partition]))
87 if pos > self.offsets[partition]:
89 if pos < self.offsets[partition]:
90 buf = b'\xFF' * (self.offsets[partition] - pos)
94 if len(ibuf) > self.sizes[partition]: