Home
last modified time | relevance | path

Searched refs:blocksize (Results 1 – 3 of 3) sorted by relevance

/build/tools/releasetools/
Dsparse_img.py46 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.blocksize
247 filepos += (b-chunk_start) * self.blocksize
249 data = f.read(self.blocksize)
Dblockimgdiff.py87 blocksize = 4096 variable in EmptyImage
107 self.blocksize = 4096
111 partial = len(self.data) % self.blocksize
117 self.data += '\0' * (self.blocksize - partial)
122 (self.blocksize,))
124 assert len(self.data) % self.blocksize == 0
126 self.total_blocks = len(self.data) / self.blocksize
142 reference = '\0' * self.blocksize
145 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 …]
Dbuild_image.py97 return simg.blocksize * simg.total_blocks