intel / isa-l

Intelligent Storage Acceleration Library
Other
946 stars 300 forks source link

Add isal_zlib_header_init #262

Closed mxmlnkn closed 9 months ago

mxmlnkn commented 9 months ago

isal_gzip_header, isal_gzip_header_init, and isal_read_gzip_header exist for gzip header parsing but only isal_zlib_header and isal_read_zlib_header exist for zlib header parsing.

I think isal_zlib_header_init should be added for consistency.

pablodelara commented 9 months ago

Thanks for your suggestion. It makes sense to me to add it. I would say it wasn't added because there are non-zero values set in isal_gzip_header_init, where as all isal_zlib_header is set to 0.

pablodelara commented 9 months ago

Function implemented, thanks for the suggestion.