lzss_write(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ lzss_write(3) ✨

okay so bestie, we're deep in the Allegro manual rn and today's main character is lzss_write from the Allegro game programming library πŸ’– buckle up, this one's short but it squeezes 🫢


🌸 NAME 🌸

lzss_write β€” compresses data using LZSS. it's giving Allegro game programming library energy ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro.h>

int lzss_write(PACKFILE *file, LZSS_PACK_DATA *dat, int size, unsigned
char *buf, int last);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• β€” this function packs size bytes from buf, using the pack information contained in dat. and the compressed bytes? they get stored in file. that's it, that's the whole vibe πŸ’…


πŸ‘‘ RETURN VALUE πŸ‘‘

it returns 0 on success πŸŽ‰ or EOF if there was an error 😭 no cap.

fr fr, always check that return value, bestie β€” EOF is NOT the slay you're looking for πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ


and that's the whole page, periodt πŸŽ€ this was Allegro version 4.4.3, and you've been reading lzss_write(3) β€” go compress something iconic, ily, bye πŸ’–βœ¨πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from