Enchantrix/pkg/trix
google-labs-jules[bot] 3f39b81518 feat: Implement streaming API for Trix encoding/decoding
This commit introduces a streaming API to the `trix` package, making it more memory-efficient for large payloads.

-   Adds `EncodeTo(io.Writer)` and `DecodeFrom(io.Reader)` functions to handle streaming data.
-   Refactors the existing `Encode` and `Decode` functions to be wrappers around the new streaming API, ensuring backward compatibility.
-   Adds a specific `ErrInvalidHeaderLength` error to the `Decode` function to provide better error feedback.
-   Includes a comprehensive set of "Good, Bad, Ugly" tests for the new streaming functionality, including tests for failing readers and writers.
2025-11-02 01:40:08 +00:00
..
trix.go feat: Implement streaming API for Trix encoding/decoding 2025-11-02 01:40:08 +00:00
trix_test.go feat: Implement streaming API for Trix encoding/decoding 2025-11-02 01:40:08 +00:00