Searched refs:blocksize (Results 1 – 2 of 2) sorted by relevance
45 self.blocksize = blk_sz = header[5]165 p = filepos + ((s - chunk_start) * self.blocksize)167 yield f.read(this_read * self.blocksize)169 yield fill_data * (this_read * (self.blocksize >> 2))179 yield f.read(this_read * self.blocksize)181 yield fill_data * (this_read * (self.blocksize >> 2))211 reference = '\0' * self.blocksize219 filepos += (b-chunk_start) * self.blocksize221 data = f.read(self.blocksize)
83 blocksize = 4096 variable in EmptyImage103 self.blocksize = 4096107 partial = len(self.data) % self.blocksize112 self.data += '\0' * (self.blocksize - partial)116 (self.blocksize,))118 assert len(self.data) % self.blocksize == 0120 self.total_blocks = len(self.data) / self.blocksize127 reference = '\0' * self.blocksize130 d = self.data[i*self.blocksize : (i+1)*self.blocksize]142 return [self.data[s*self.blocksize:e*self.blocksize] for (s, e) in ranges][all …]