|
iPXE
|
zlib compressed images More...
#include <stdlib.h>#include <errno.h>#include <assert.h>#include <ipxe/deflate.h>#include <ipxe/image.h>#include <ipxe/zlib.h>Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| int | zlib_deflate (enum deflate_format format, const void *data, size_t len, struct image *extracted) |
| Extract compressed data to image. More... | |
| static int | zlib_extract (struct image *image, struct image *extracted) |
| Extract zlib image. More... | |
| static int | zlib_probe (struct image *image) |
| Probe zlib image. More... | |
| struct image_type zlib_image_type | __image_type (PROBE_NORMAL) |
| zlib image type More... | |
zlib compressed images
Definition in file zlib.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| 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().
Extract zlib image.
| image | Image |
| extracted | Extracted image |
| rc | Return status code |
Definition at line 117 of file zlib.c.
References image::data, DEFLATE_ZLIB, image::len, rc, and zlib_deflate().
|
static |
Probe zlib image.
| image | zlib image |
| rc | Return status code |
Definition at line 134 of file zlib.c.
References image::data, DBGC, ENOEXEC, image::len, magic, image::name, and zlib_magic_is_valid().
| struct image_type zlib_image_type __image_type | ( | PROBE_NORMAL | ) |
zlib image type
1.8.15