separate newRep() from updateRep()
the new contracts seems to make more sense : updateRep() updates an array of repeat offsets _in place_, while newRep() generates a new structure with the updated repeat-offset array. Most callers are actually expecting the in-place variant, and a limited sub-section, in `zstd_opt.c` mainly, prefer `newRep()`.
Showing
- lib/compress/zstd_compress.c 7 additions, 7 deletionslib/compress/zstd_compress.c
- lib/compress/zstd_compress_internal.h 23 additions, 15 deletionslib/compress/zstd_compress_internal.h
- lib/compress/zstd_compress_superblock.c 1 addition, 1 deletionlib/compress/zstd_compress_superblock.c
- lib/compress/zstd_opt.c 2 additions, 2 deletionslib/compress/zstd_opt.c
Loading
Please register or sign in to comment