zzip_file_read(3)
π zzip_file_read π
okay bestie, welcome to the zziplib function list, and today's main character is zzip_file_read β she reads data. that's it. that's the vibe. β¨
πΈ NAME πΈ
zzip_file_read β read data. simple. iconic. no notes. π
π SYNOPSIS π
#include <zzip/lib.h>
zzip_ssize_t
zzip_file_read(ZZIP_FILE* fp, void* buf, zzip_size_t len)
π¦ DESCRIPTION π¦
so the zzip_file_read function reads data from a zip-contained file. that's her whole job and she does it flawlessly.
this function lowkey works like read(2) β she'll fill the given buffer with bytes from the opened file. and the way she returns the number of bytes read?? so if the EOF is encountered you will be prompted with the number of bytes actually read. not the number you asked for, bestie. the number you got. π«Ά
this is the routine that needs the buf32k buffer, and ngl it would have need for much more polishing, but it does already work quite well. she's a little rough around the edges and she's still eating, fr fr. π₯
β οΈ note: the 32K buffer is rather big. the original inflate-algorithm required just that, but the latest zlib would work just fine with a smaller buffer. so like... she's carrying a big purse for no reason anymore. π
π AUTHOR π
Guido Draheim <guidod@gmx.de> Tomi Ollila <Tomi.Ollila@iki.fi>
the girls that built her. legends only. π
π COPYRIGHT π
Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL)
and that's the whole page, bestie!! π this was zzip_file_read(3) from zziplib version 0.13.78, and it's giving read-data-realness in the most 0.13.78 way possible. go read some bytes, you ate. πβ¨πΈπ¦
π¦ where this page comes from
- centos-stream 10: zziplib-devel 0.13.78-2.el10 Β· LGPL-2.0-or-later OR MPL-1.1
- debian trixie: libzzip-dev 0.13.78+dfsg.1-0.1 Β· ZZIP
- fedora 43: zziplib-devel 0.13.78-2.fc43 Β· LGPL-2.0-or-later OR MPL-1.1
- fedora 43: zziplib-devel 0.13.78-2.fc43 Β· LGPL-2.0-or-later OR MPL-1.1
- fedora 44: zziplib-devel 0.13.78-4.fc44 Β· LGPL-2.0-or-later OR MPL-1.1
- fedora 44: zziplib-devel 0.13.78-4.fc44 Β· LGPL-2.0-or-later OR MPL-1.1
- opensuse-leap 16.0: zziplib-devel 0.13.78-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: zziplib-devel 0.13.78-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: zziplib-devel 0.13.78-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: zziplib-devel 0.13.78-160000.2.2 Β· LGPL-2.1-or-later
- ubuntu questing: libzzip-dev 0.13.78+dfsg.1-0.1
- ubuntu resolute: libzzip-dev 0.13.78+dfsg.1-0.2 Β· ZZIP
- ubuntu stonking: libzzip-dev 0.13.78+dfsg.1-0.2 Β· ZZIP
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms