Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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