Tags: ITotalJustice/librewind
Tags
re-work the api to reduce calls to malloc and free. - reduce calls to malloc during runtime. buffers are now allocated ahead of time during init, which reduces the number of calls to malloc and free to just 1, which are called in rewind_push(). these calls cannot be removed as the size of the compressed data cannot be known ahead of time (obviously), and we need free to remove the old frame. - fix lz4 test. if the inflate call failed, it would a negative number, i didn't handle this, so it would always "pass" even on faliure.