|
iPXE
|
zlib compressed images More...
Go to the source code of this file.
Data Structures | |
| union | zlib_magic |
| zlib magic header More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static int | zlib_magic_is_valid (const union zlib_magic *magic) |
| Check that zlib magic header is valid. More... | |
| int | zlib_deflate (enum deflate_format format, const void *data, size_t len, struct image *extracted) |
| Extract compressed data to image. More... | |
| struct image_type zlib_image_type | __image_type (PROBE_NORMAL) |
zlib compressed images
Definition in file zlib.h.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
inlinestatic |
Check that zlib magic header is valid.
| magic | Magic header |
| is_valid | Magic header is valid |
Definition at line 31 of file zlib.h.
References be16_to_cpu, and magic.
Referenced by zlib_probe().
| int zlib_deflate | ( | enum deflate_format | format, |
| const void * | data, | ||
| size_t | len, | ||
| struct image * | extracted | ||
| ) |
Extract compressed data to image.
| format | Compression format code |
| data | Compressed input data |
| len | Length of compressed input data |
| extracted | Extracted image |
| rc | Return status code |
Definition at line 48 of file zlib.c.
References data, DBGC, deflate_finished(), deflate_inflate(), deflate_init(), EINVAL, ENOMEM, format, free, image_set_len(), image::len, len, image::name, out, rc, image::rwdata, strerror(), and zalloc().
Referenced by gzip_extract(), and zlib_extract().
| struct image_type zlib_image_type __image_type | ( | PROBE_NORMAL | ) |
1.8.15