Searched refs:blocksize (Results 1 – 3 of 3) sorted by relevance
46 self.blocksize = blk_sz = header[5]183 p = filepos + ((s - chunk_start) * self.blocksize)185 yield f.read(this_read * self.blocksize)187 yield fill_data * (this_read * (self.blocksize >> 2))197 yield f.read(this_read * self.blocksize)199 yield fill_data * (this_read * (self.blocksize >> 2))229 reference = '\0' * self.blocksize247 filepos += (b-chunk_start) * self.blocksize249 data = f.read(self.blocksize)
87 blocksize = 4096 variable in EmptyImage107 self.blocksize = 4096111 partial = len(self.data) % self.blocksize117 self.data += '\0' * (self.blocksize - partial)122 (self.blocksize,))124 assert len(self.data) % self.blocksize == 0126 self.total_blocks = len(self.data) / self.blocksize142 reference = '\0' * self.blocksize145 d = self.data[i*self.blocksize : (i+1)*self.blocksize]164 return [self.data[s*self.blocksize:e*self.blocksize] for (s, e) in ranges][all …]
97 return simg.blocksize * simg.total_blocks