Searched refs:chunk_header (Results 1 – 3 of 3) sorted by relevance
/system/core/libsparse/ |
D | output_file.cpp | 320 chunk_header_t chunk_header; in write_sparse_skip_chunk() local 330 chunk_header.chunk_type = CHUNK_TYPE_DONT_CARE; in write_sparse_skip_chunk() 331 chunk_header.reserved1 = 0; in write_sparse_skip_chunk() 332 chunk_header.chunk_sz = skip_len / out->block_size; in write_sparse_skip_chunk() 333 chunk_header.total_sz = CHUNK_HEADER_LEN; in write_sparse_skip_chunk() 334 ret = out->ops->write(out, &chunk_header, sizeof(chunk_header)); in write_sparse_skip_chunk() 344 chunk_header_t chunk_header; in write_sparse_fill_chunk() local 353 chunk_header.chunk_type = CHUNK_TYPE_FILL; in write_sparse_fill_chunk() 354 chunk_header.reserved1 = 0; in write_sparse_fill_chunk() 355 chunk_header.chunk_sz = rnd_up_len / out->block_size; in write_sparse_fill_chunk() [all …]
|
D | sparse_read.cpp | 287 chunk_header_t* chunk_header, unsigned int cur_block, uint32_t* crc_ptr) { in process_chunk() argument 292 chunk_data_size = chunk_header->total_sz - chunk_hdr_sz; in process_chunk() 294 switch (chunk_header->chunk_type) { in process_chunk() 297 process_raw_chunk(s, chunk_data_size, source, chunk_header->chunk_sz, cur_block, crc_ptr); in process_chunk() 302 return chunk_header->chunk_sz; in process_chunk() 304 ret = process_fill_chunk(s, chunk_data_size, source, chunk_header->chunk_sz, cur_block, in process_chunk() 310 return chunk_header->chunk_sz; in process_chunk() 312 ret = process_skip_chunk(s, chunk_data_size, source, chunk_header->chunk_sz, cur_block, in process_chunk() 320 return chunk_header->chunk_sz; in process_chunk() 329 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
|