Repository navigation
[DOC] ZlibCompression: drop stale QtByteArray reference; document all throws - #9334
Conversation
… throws - Drop the "If you want safe conversions, use QtByteArray" line -- Qt has been removed from OpenMS core (PR #8965), the reference is stale and misleading. - Add @InGroup FileIO. - Surface the three throw paths on compressString / compressData (OutOfMemory, InvalidValue, ConversionError), verified against ZlibCompression.cpp:36-48. - Tighten the uncompressData doc: spell out the two code paths (known vs unknown output size) and document the nr_bytes==0 shortcut (ZlibCompression.cpp:55-58). Note that the "actual size smaller than output_size" path resizes and logs informational (not a throw) (ZlibCompression.cpp:64-71). - Promote uncompressString from a one-line "Convencience" (typo) summary to a proper block that delegates @throws to uncompressData. No behaviour change. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR updates the Doxygen documentation for the ChangesZlibCompression API Documentation
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
#8965). Misleading; removed.@ingroup FileIO.compressString/compressDatathat the previous docs were silent about:Exception::OutOfMemory(Z_MEM_ERROR),Exception::InvalidValue(Z_BUF_ERROR),Exception::ConversionError(any other zlib error). Verified againstZlibCompression.cpp:36-48.uncompressDatadoc: spell out the two code paths (known vs unknownoutput_size); note thenr_bytes == 0shortcut fromZlibCompression.cpp:55-58; note that the "actual size smaller thanoutput_size" path resizes and logs informational (not a throw) --ZlibCompression.cpp:64-71.uncompressStringfrom a one-line "Convencience" (typo) summary to a proper Doxygen block that delegates@throwstouncompressData.No behaviour change.
Test plan
cmake --build OpenMS-build --target OpenMSbuilds cleanly.🤖 Generated with Claude Code
Summary by CodeRabbit
Documentation