1ZZIP_DISK_ENTRY_TO_D(3)      zziplib Function List     ZZIP_DISK_ENTRY_TO_D(3)
2
3
4

NAME

6       zzip_disk_entry_to_data, zzip_disk_entry_to_file_header,
7       zzip_disk_entry_strdup_name, zzip_disk_entry_strdup_comment - helper
8       functions for (mmapped) zip access api
9

SYNOPSIS

11       #include <zzip/mmapped.h>
12
13       zzip_byte_t*
14                                            zzip_disk_entry_to_data((ZZIP_DISK* disk, struct zzip_disk_entry* entry));
15
16       struct zzip_file_header*
17                                                               zzip_disk_entry_to_file_header((ZZIP_DISK* disk, struct zzip_disk_entry* entry));
18
19       zzip__new__ char*
20                                                     zzip_disk_entry_strdup_name((ZZIP_DISK* disk, struct zzip_disk_entry* entry));
21
22       zzip__new__ char*
23                                                        zzip_disk_entry_strdup_comment((ZZIP_DISK* disk, struct zzip_disk_entry* entry));
24

DESCRIPTION

26       The zzip_disk_entry_to_data function augments the other
27       zzip_disk_entry_* helpers: here we move a disk_entry pointer (as
28       returned by _find* functions) into a pointer to the data block right
29       after the file_header. Only disk->buffer would be needed to perform the
30       seek but we check the mmapped range end as well.
31
32       The zzip_disk_entry_to_file_header function does half the job of
33       zzip_disk_entry_to_data where it can augment with
34       zzip_file_header_to_data helper from format/fetch.h
35
36       The zzip_disk_entry_strdup_name function is a big helper despite its
37       little name: in a zip file the encoded filenames are usually NOT
38       zero-terminated but for common usage with libc we need it that way.
39       Secondly, the filename SHOULD be present in the zip central directory
40       but if not then we fallback to the filename given in the file_header of
41       each compressed data portion.
42
43       The zzip_disk_entry_strdup_comment function is similar creating a
44       reference to a zero terminated string but it can only exist in the zip
45       central directory entry.
46

AUTHOR

48       ยท   Guido Draheim <guidod@gmx.de>
49
51       Copyright (c) 2003,2004,2006 Guido Draheim All rights reserved, use
52       under the restrictions of the Lesser GNU General Public License or
53       alternatively the restrictions of the Mozilla Public License 1.1
54
55
56
57zziplib                             0.13.49            ZZIP_DISK_ENTRY_TO_D(3)
Impressum