Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added decoding directly from a FILE* pointer to the API #423

Merged
merged 1 commit into from
May 17, 2017

Conversation

Traneptora
Copy link
Contributor

This functionality is particularly useful because not all FILE* pointers were created from fopen to point to files on the hard drive. Some could be created by routines such as tmpfile(3) or open_memstream(3) and currently FLIF has no way of decoding them without buffering them into memory and using flif_decoder_decode_memory. This adds flif_decoder_decode_filepointer to the exported API. The caller still needs to pass a filename, but the filename can be any non-NULL string, because it's only used for the decoder to print error messages. A rich reader can give it a real name or a dummy name like "FilePointer."

@Traneptora
Copy link
Contributor Author

Oops, didn't include stdio. Lemme add that and repull.

@Traneptora
Copy link
Contributor Author

Squashed commits.

@jonsneyers jonsneyers merged commit a051201 into FLIF-hub:master May 17, 2017
@jonsneyers
Copy link
Member

Thanks! Useful indeed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants