Skip to content

doc: Refines documentation and API option descriptions#299

Merged
hellobertrand merged 3 commits into
mainfrom
doc/update-functions
Jun 25, 2026
Merged

doc: Refines documentation and API option descriptions#299
hellobertrand merged 3 commits into
mainfrom
doc/update-functions

Conversation

@hellobertrand

Copy link
Copy Markdown
Owner

Enhances clarity and accuracy across various documentation aspects:

  • Updates example code and descriptions for compression and decompression options, standardizing the checksum_enabled option name and clarifying which options are utilized by single-threaded calls.
  • Refines the description of the library version string format to "MAJOR.MINOR.PATCH".
  • Clarifies the behavior of ZXC_MAX_THREADS by indicating that higher values are clamped, rather than resulting in an error.
  • Increases the maximum compression level from 5 to 6 in the options structure.
  • Improves internal comments regarding checksum handling in block encoding, hash table structure, Huffman encoding details, and scratch buffer usage.
  • Adds documentation for dictionary-related fields in the streaming context, hinting at dictionary support for streaming APIs.
  • Adjusts the list of standard header functions pulled in by the library.

Updates include:
*   Renaming the `checksum` option field to `checksum_enabled` in examples.
*   Clarifying which options (`n_threads`, progress callback) are ignored by the single-threaded `zxc_compress` and `zxc_decompress` calls.
*   Updating the maximum compression `level` from 5 to 6.
*   Specifying the "MAJOR.MINOR.PATCH" format for the library version string.
*   Clarifying that `n_threads` values exceeding `ZXC_MAX_THREADS` are clamped rather than resulting in an error.
Updates internal documentation to ensure accuracy:
*   Corrects the list of standard headers provided by `zxc_deps.h`, adding `CHAR_BIT` and removing `INT_MAX`/`UINT_MAX`.
*   Renames `hash_positions` to `hash_table` in hash table geometry descriptions.
*   Adjusts the maximum Huffman encoding bit code from 11 to 8 bits.
*   Clarifies the `epoch` storage description in the hash table from `(epoch << 16)` to `(epoch << offset_bits)`.
@hellobertrand hellobertrand changed the title Refines documentation and API option descriptions doc: Refines documentation and API option descriptions Jun 24, 2026
@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@hellobertrand hellobertrand merged commit c874847 into main Jun 25, 2026
84 checks passed
@hellobertrand hellobertrand deleted the doc/update-functions branch June 25, 2026 04:18
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant