W-M-R opened a new pull request, #18281: URL: https://github.com/apache/nuttx/pull/18281
*Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary Added lib_lzfinstream (LZF decompression input stream), supporting seek operations on "decompressed data": backward processing is possible, while forward scanning reconstructs the state from the beginning. Aligned sistream/sostream structures to allow them to reuse the same lib_stream_seek macros/interfaces, avoiding type inconsistency issues. Fixed errors in the loop read offset/buffer handling of file(s)istream, preventing read errors when there is no buffer offset. Fixed the handling of lzf-stream in both "compression successful" and "compression failed" header scenarios: preventing decompression errors caused by parsing according to the compressed block format when compression fails, and reducing the risk of potential compression failure/decompression errors. ## Impact Provides stream-based LZF decompression capabilities, facilitating on-demand reading in file/storage scenarios and supporting location-based reading of uncompressed views. Improves stream system consistency (sistream/sostream alignment) and stability (type errors, read offset errors, LZF header branch handling). The changes primarily focus on libc/stream and LZF-related implementations and are not expected to affect modules that do not use these streams/algorithms. ## Testing ci test -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
