Home
last modified time | relevance | path

Searched refs:chunk_header (Results 1 – 3 of 3) sorted by relevance

/system/core/libsparse/
Doutput_file.c342 chunk_header_t chunk_header; in write_sparse_skip_chunk() local
352 chunk_header.chunk_type = CHUNK_TYPE_DONT_CARE; in write_sparse_skip_chunk()
353 chunk_header.reserved1 = 0; in write_sparse_skip_chunk()
354 chunk_header.chunk_sz = skip_len / out->block_size; in write_sparse_skip_chunk()
355 chunk_header.total_sz = CHUNK_HEADER_LEN; in write_sparse_skip_chunk()
356 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
377 chunk_header.chunk_type = CHUNK_TYPE_FILL; in write_sparse_fill_chunk()
378 chunk_header.reserved1 = 0; in write_sparse_fill_chunk()
379 chunk_header.chunk_sz = rnd_up_len / out->block_size; in write_sparse_fill_chunk()
[all …]
Dsparse_read.c224 unsigned int chunk_hdr_sz, chunk_header_t *chunk_header, in process_chunk() argument
230 chunk_data_size = chunk_header->total_sz - chunk_hdr_sz; in process_chunk()
232 switch (chunk_header->chunk_type) { in process_chunk()
235 chunk_header->chunk_sz, cur_block, crc_ptr); in process_chunk()
240 return chunk_header->chunk_sz; in process_chunk()
243 chunk_header->chunk_sz, cur_block, crc_ptr); in process_chunk()
248 return chunk_header->chunk_sz; in process_chunk()
251 chunk_header->chunk_sz, cur_block, crc_ptr); in process_chunk()
258 return chunk_header->chunk_sz; in process_chunk()
269 chunk_header->chunk_type, offset); in process_chunk()
[all …]
Dsparse_format.h42 typedef struct chunk_header { struct