Commit Graph

4 Commits

Author SHA1 Message Date
Brotli d019271c8b Copybara import of the project:
--
f1bdfaa803 by Robert Obryk <robryk@google.com>:

add size limit to buffer

--
ef8922cee7 by Robert Obryk <robryk@google.com>:

add max_length to Python streaming decompression

PiperOrigin-RevId: 712463460
2025-01-06 03:05:56 -08:00
Robert Obryk ef8922cee7 add max_length to Python streaming decompression 2025-01-06 11:26:42 +01:00
Robert Obryk f1bdfaa803 add size limit to buffer 2024-09-17 16:54:59 +02:00
Ma Lin c8df4b3049
Python: use a new output buffer code (#902)
Currently, the output buffer is a std::vector<uint8_t>.
When the buffer grows, resizing will cause unnecessary memcpy().

This change uses a list of bytes object to represent output buffer, can avoid the extra overhead of resizing.
In addition, C++ code can be removed, it's a pure C extension.
2022-12-29 14:07:16 +01:00