bmarquismarkail/SFFv2 ? reverse-engineered prompt

Reverse engineered prompt

Build out this C++11 library for working with the SFFv2 sprite format so it’s easy to load, inspect, and save sprite files from an app.

I want the project to feel complete and usable, with the header, palette data, sprite data, stream handling, and the main file wrapper all working together cleanly. Please make sure the code compiles, the public interface is sensible, and the implementation is robust with basic error handling for bad or incomplete files. If anything about the SFFv2 format details is unclear, look up current references online and fill in the missing parts in a practical way.

If it helps, add a small example or simple tests that show opening a file, reading its contents, and writing it back out. Keep the API straightforward for someone who just wants to use the format without digging through internals.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab