__zzip_fetch_disk_trailer(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_fetch_disk_trailer(3) ✨

okay bestie, welcome to the zziplib Function List manual, and today's main character is __zzip_fetch_disk_trailer πŸ’… she's internal, which basically means she's backstage crew and not here for the general public, iykyk πŸ™ˆ


🌸 NAME 🌸

__zzip_fetch_disk_trailer β€” internal. yeah that's literally it, that's the whole job description, she's an internal helper and she knows it πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <zzip/lib.h>

static int
__zzip_fetch_disk_trailer(int fd, zzip_off_t filesize, struct _disk_trailer* _zzip_restrict trailer,
                          zzip_plugin_io_t io)

so she's a static int function, she takes an int fd, a zzip_off_t filesize, a struct _disk_trailer* _zzip_restrict trailer, and a zzip_plugin_io_t io 🌈 and yeah, the _zzip_restrict on that trailer pointer is doing its little compiler-optimization vibe check, we respect it ✨


πŸ’– DESCRIPTION πŸ’–

okay so the way that __zzip_fetch_disk_trailer works is that she gets called up by zzip_file_open πŸ‘‘ she's the one who goes looking for the zip's central directory info, which is lowkey usually hanging out just a few bytes off the end of the file 🫢

like, picture the end of a zip file and the central directory is basically standing a couple feet back from the edge going "hiii" β€” that's the whole hunt, that's the mission, no cap πŸ’€


🌟 AUTHOR 🌟

  • Guido Draheim <guidod@gmx.de>
  • Tomi Ollila <too@iki.fi>

two icons, two legends, we love to see it πŸ’œ


Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL) β€” so go forth and share, bestie, just keep it copyleft, periodt ✨


and that's the whole page fr fr πŸ¦‹ this was zziplib 0.13.78, __zzip_fetch_disk_trailer(3), signing off with main character energy πŸ‘‘πŸ’… mwah, go read the rest of the function list, ily πŸ“