Expand description
§Lowlevel android sparse image parsing helpers
An android space image is a sparse representation of a potential output file. The format consist of a FileHeader followed by a number of ChunkHeaders and their associated data
Sparse image |
---|
File header |
Chunk 0 header |
Chunk 0 data |
Chunk 1 header |
Chunk 1 data |
…. |
Chunk N header |
Chunk N data |
The size of data in a chunk depends on the ChunkType and can be determined with ChunkHeader::data_size
Modules§
- split
- Helpers to split an image into multiple smaller ones
Structs§
- Chunk
Header - Header of a chunk
- File
Header - Global file header
Enums§
- Chunk
Type - Type of a chunk
- Parse
Error - Byte parsing errors
Constants§
- CHUNK_
HEADER_ BYTES_ LEN - Length of the chunk header in bytes
- DEFAULT_
BLOCKSIZE - FILE_
HEADER_ BYTES_ LEN - Length of the file header in bytes
- HEADER_
MAGIC - File magic - This are the first 4 bytes in little-endian
Type Aliases§
- Chunk
Header Bytes - Byte array which fits a chunk header
- File
Header Bytes - Byte array which fits a file header