Searched refs:chunk_header (Results 1 – 3 of 3) sorted by relevance
/system/core/libsparse/ |
D | output_file.cpp | 345 chunk_header_t chunk_header; in write_sparse_skip_chunk() local 355 chunk_header.chunk_type = CHUNK_TYPE_DONT_CARE; in write_sparse_skip_chunk() 356 chunk_header.reserved1 = 0; in write_sparse_skip_chunk() 357 chunk_header.chunk_sz = skip_len / out->block_size; in write_sparse_skip_chunk() 358 chunk_header.total_sz = CHUNK_HEADER_LEN; in write_sparse_skip_chunk() 359 ret = out->ops->write(out, &chunk_header, sizeof(chunk_header)); in write_sparse_skip_chunk() 369 chunk_header_t chunk_header; in write_sparse_fill_chunk() local 378 chunk_header.chunk_type = CHUNK_TYPE_FILL; in write_sparse_fill_chunk() 379 chunk_header.reserved1 = 0; in write_sparse_fill_chunk() 380 chunk_header.chunk_sz = rnd_up_len / out->block_size; in write_sparse_fill_chunk() [all …]
|
D | sparse_read.cpp | 328 chunk_header_t* chunk_header, unsigned int cur_block, uint32_t* crc_ptr) { in process_chunk() argument 333 chunk_data_size = chunk_header->total_sz - chunk_hdr_sz; in process_chunk() 335 switch (chunk_header->chunk_type) { in process_chunk() 338 process_raw_chunk(s, chunk_data_size, source, chunk_header->chunk_sz, cur_block, crc_ptr); in process_chunk() 343 return chunk_header->chunk_sz; in process_chunk() 345 ret = process_fill_chunk(s, chunk_data_size, source, chunk_header->chunk_sz, cur_block, in process_chunk() 351 return chunk_header->chunk_sz; in process_chunk() 353 ret = process_skip_chunk(s, chunk_data_size, source, chunk_header->chunk_sz, cur_block, in process_chunk() 361 return chunk_header->chunk_sz; in process_chunk() 370 verbose_error(s->verbose, -EINVAL, "unknown block %04X at %" PRId64, chunk_header->chunk_type, in process_chunk() [all …]
|
D | sparse_format.h | 46 typedef struct chunk_header { struct
|