Home
last modified time | relevance | path

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

/aosp14/system/core/libsparse/
H A Doutput_file.cpp345 chunk_header_t chunk_header; in write_sparse_skip_chunk() local
356 chunk_header.reserved1 = 0; 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
379 chunk_header.reserved1 = 0; in write_sparse_fill_chunk()
382 ret = out->ops->write(out, &chunk_header, sizeof(chunk_header)); in write_sparse_fill_chunk()
410 chunk_header.reserved1 = 0; in write_sparse_data_chunk()
413 ret = out->ops->write(out, &chunk_header, sizeof(chunk_header)); in write_sparse_data_chunk()
461 chunk_header.reserved1 = 0; in write_sparse_fd_chunk()
464 ret = out->ops->write(out, &chunk_header, sizeof(chunk_header)); in write_sparse_fd_chunk()
[all …]
H A Dsparse_read.cpp333 chunk_data_size = chunk_header->total_sz - chunk_hdr_sz; in process_chunk()
335 switch (chunk_header->chunk_type) { 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()
381 chunk_header_t chunk_header; in sparse_file_read_sparse() local
415 if (sparse_header.chunk_hdr_sz < sizeof(chunk_header)) { in sparse_file_read_sparse()
430 ret = source->ReadValue(&chunk_header, sizeof(chunk_header)); in sparse_file_read_sparse()
[all …]
H A Dsparse_format.h46 typedef struct chunk_header { struct
/aosp14/frameworks/base/tools/aapt2/format/binary/
H A DChunkWriter.h53 inline android::ResChunk_header* chunk_header() { in chunk_header() function
/aosp14/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp499 const auto chunk_header = data.convert<ResChunk_header>(); in setTo() local
500 if (validate_chunk(chunk_header, sizeof(ResStringPool_header), data.convert<uint8_t>() + size, in setTo()