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. |
||
|---|---|---|
| .. | ||
| crypt | ||
| enchantrix | ||
| trix | ||