Lines Matching refs:start
197 static bool AlignHead(size_t* start, size_t* length) { in AlignHead() argument
198 size_t residual = (*start % BLOCK_SIZE == 0) ? 0 : BLOCK_SIZE - *start % BLOCK_SIZE; in AlignHead()
206 *start += residual; in AlignHead()
211 static bool AlignTail(size_t* start, size_t* length) { in AlignTail() argument
212 size_t residual = (*start + *length) % BLOCK_SIZE; in AlignTail()
226 static bool RemoveUsedBlocks(size_t* start, size_t* length, const SortedRangeSet& used_ranges) { in RemoveUsedBlocks() argument
227 if (!used_ranges.Overlaps(*start, *length)) { in RemoveUsedBlocks()
232 LOG(INFO) << "Removing block " << used_ranges.ToString() << " from " << *start << " - " in RemoveUsedBlocks()
233 << *start + *length - 1; in RemoveUsedBlocks()
237 if (AlignHead(start, length) && !used_ranges.Overlaps(*start, *length)) { in RemoveUsedBlocks()
240 if (AlignTail(start, length) && !used_ranges.Overlaps(*start, *length)) { in RemoveUsedBlocks()
258 ImageChunk::ImageChunk(int type, size_t start, const std::vector<uint8_t>* file_content, in ImageChunk() argument
261 start_(start), in ImageChunk()