Home
last modified time | relevance | path

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

/build/tools/releasetools/
Dsparse_img.py45 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.blocksize
219 filepos += (b-chunk_start) * self.blocksize
221 data = f.read(self.blocksize)
Dblockimgdiff.py83 blocksize = 4096 variable in EmptyImage
103 self.blocksize = 4096
107 partial = len(self.data) % self.blocksize
112 self.data += '\0' * (self.blocksize - partial)
116 (self.blocksize,))
118 assert len(self.data) % self.blocksize == 0
120 self.total_blocks = len(self.data) / self.blocksize
127 reference = '\0' * self.blocksize
130 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 …]