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 (union zlib_magic *magic) |
Check that zlib magic header is valid. More... | |
int | zlib_deflate (enum deflate_format format, struct deflate_chunk *in, 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, |
struct deflate_chunk * | in, | ||
struct image * | extracted | ||
) |
Extract compressed data to image.
format | Compression format code |
in | Compressed input chunk |
extracted | Extracted image |
rc | Return status code |
Definition at line 48 of file zlib.c.
References image::data, DBGC, deflate_finished(), deflate_inflate(), deflate_init(), EINVAL, ENOMEM, format, free, image_set_len(), in, image::len, out, rc, strerror(), and zalloc().
Referenced by gzip_extract(), and zlib_extract().
struct image_type zlib_image_type __image_type | ( | PROBE_NORMAL | ) |