-
- Downloads
Enhanced Error Handling in Chunk Compression Functions
- The compression function has been updated to return an error code upon failure. - The returned value can now be checked for errors using the cmp_is_error() function. - Retrieve the specific error code with the cmp_get_error_code() function. - Error handling now includes descriptive strings for each error code. - Note: compress_chunk_set_model_id_and_counter() will return dst_size on success instead of 0.
Showing
- examples/example_compress_chunk.c 35 additions, 15 deletionsexamples/example_compress_chunk.c
- lib/cmp_chunk.h 63 additions, 17 deletionslib/cmp_chunk.h
- lib/common/cmp_debug.h 7 additions, 0 deletionslib/common/cmp_debug.h
- lib/common/cmp_error.c 141 additions, 0 deletionslib/common/cmp_error.c
- lib/common/cmp_error.h 149 additions, 0 deletionslib/common/cmp_error.h
- lib/common/cmp_error_list.h 59 additions, 0 deletionslib/common/cmp_error_list.h
- lib/common/meson.build 1 addition, 0 deletionslib/common/meson.build
- lib/icu_compress/cmp_icu.c 397 additions, 421 deletionslib/icu_compress/cmp_icu.c
- test/cmp_decmp/test_cmp_decmp.c 29 additions, 23 deletionstest/cmp_decmp/test_cmp_decmp.c
Loading
Please register or sign in to comment