zzip_file_read(3)

πŸ“¦
version 0.13.78 Β· 4 versions
, in centos-stream 10, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 (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. πŸ’–βœ¨πŸŒΈπŸ¦‹