Lines Matching refs:fill_data
663 fill_data: Blob with data to fill if TYPE_FILL otherwise None.
673 input_offset, fill_data):
682 fill_data: Blob as bytes with data to fill if TYPE_FILL otherwise None.
692 self.fill_data = fill_data
695 if self.fill_data is not None:
696 raise ValueError('RAW chunk cannot have fill_data set.')
700 if self.fill_data is None:
701 raise ValueError('FILL chunk must have fill_data set.')
705 if self.fill_data is not None:
706 raise ValueError('DONT_CARE chunk cannot have fill_data set.')
834 fill_data = self._image.read(4)
840 fill_data))
968 def append_fill(self, fill_data, size):
974 fill_data: Fill data to append - must be four bytes.
980 assert len(fill_data) == 4
989 self._image.write(fill_data * (size//4))
1003 self._image.write(fill_data)
1054 all_data = chunk.fill_data*(chunk_pos_to_go // len(chunk.fill_data) + 2)
1055 offset_mod = chunk_pos_offset % len(chunk.fill_data)