Non-Stream Encoding
Brought to you by:
devolve
I had an issue using the non-stream based c++ interface for encoding data. I found that using this interface the internal state variable was never initialized, as it is when using the stream interface. I've resolved this problem by initializing it in the constructor instead one of a number of member functions.
I made a patch to resolve this problem. It also changes the parameter names of the encode function to match the parameter names of the C function it is wrapping, as I found these names less confusing. Finally, the patch also resolved the BUFFERSIZE problem reported here as issue 3.
Attaching a better patch which uses a larger default buffer and removes the makefile setting of this constant.
And, this one does the same thing for decode.
I have encountered the same issue and created similar patches. Any chance that these patches get pulled in?