Home
last modified time | relevance | path

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

/system/core/libsparse/
Dsparse_read.cpp339 sparse_header_t sparse_header; in sparse_file_read_sparse() local
357 ret = source->ReadValue(&sparse_header, sizeof(sparse_header)); in sparse_file_read_sparse()
362 if (sparse_header.magic != SPARSE_HEADER_MAGIC) { in sparse_file_read_sparse()
366 if (sparse_header.major_version != SPARSE_HEADER_MAJOR_VER) { in sparse_file_read_sparse()
370 if (sparse_header.file_hdr_sz < SPARSE_HEADER_LEN) { in sparse_file_read_sparse()
374 if (sparse_header.chunk_hdr_sz < sizeof(chunk_header)) { in sparse_file_read_sparse()
378 if (sparse_header.file_hdr_sz > SPARSE_HEADER_LEN) { in sparse_file_read_sparse()
382 source->Seek(sparse_header.file_hdr_sz - SPARSE_HEADER_LEN); in sparse_file_read_sparse()
385 for (i = 0; i < sparse_header.total_chunks; i++) { in sparse_file_read_sparse()
391 if (sparse_header.chunk_hdr_sz > CHUNK_HEADER_LEN) { in sparse_file_read_sparse()
[all …]
Dsparse_format.h25 typedef struct sparse_header { struct
Doutput_file.cpp536 sparse_header_t sparse_header = { in output_file_init() local
548 sparse_header.total_chunks++; in output_file_init()
551 ret = out->ops->write(out, &sparse_header, sizeof(sparse_header)); in output_file_init()