Searched refs:chunk_header (Results 1 – 3 of 3) sorted by relevance
/system/core/libsparse/ |
D | output_file.c | 349 chunk_header_t chunk_header; in write_sparse_skip_chunk() local 359 chunk_header.chunk_type = CHUNK_TYPE_DONT_CARE; in write_sparse_skip_chunk() 360 chunk_header.reserved1 = 0; in write_sparse_skip_chunk() 361 chunk_header.chunk_sz = skip_len / out->block_size; in write_sparse_skip_chunk() 362 chunk_header.total_sz = CHUNK_HEADER_LEN; in write_sparse_skip_chunk() 363 ret = out->ops->write(out, &chunk_header, sizeof(chunk_header)); in write_sparse_skip_chunk() 376 chunk_header_t chunk_header; in write_sparse_fill_chunk() local 384 chunk_header.chunk_type = CHUNK_TYPE_FILL; in write_sparse_fill_chunk() 385 chunk_header.reserved1 = 0; in write_sparse_fill_chunk() 386 chunk_header.chunk_sz = rnd_up_len / out->block_size; in write_sparse_fill_chunk() [all …]
|
D | sparse_read.cpp | 199 unsigned int chunk_hdr_sz, chunk_header_t *chunk_header, in process_chunk() argument 205 chunk_data_size = chunk_header->total_sz - chunk_hdr_sz; in process_chunk() 207 switch (chunk_header->chunk_type) { in process_chunk() 210 chunk_header->chunk_sz, cur_block, crc_ptr); in process_chunk() 215 return chunk_header->chunk_sz; in process_chunk() 218 chunk_header->chunk_sz, cur_block, crc_ptr); in process_chunk() 223 return chunk_header->chunk_sz; in process_chunk() 226 chunk_header->chunk_sz, cur_block, crc_ptr); in process_chunk() 233 return chunk_header->chunk_sz; in process_chunk() 244 chunk_header->chunk_type, offset); in process_chunk() [all …]
|
D | sparse_format.h | 46 typedef struct chunk_header { struct
|