mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 00:38:14 +01:00
base: rename history_retain_length
It was renamed to dst_history_retain_length. It also was removed from image_decoders and token_decoders. It only applies to io_transformers, as retaining history applies to the destination (not source) IO buffer. Also adjust example/bzcat and example/zcat to apply the history retain length to the dst (not src) buffer.
This commit is contained in:
1 parent
b4e09690a7
commit
eed1af7bee
34 files changed
+179
-640
No files matched your search
@@ -189,7 +189,7 @@ class Wuffs_Load_RW_Input : public wuffs_aux::sync_io::Input {
|
||||
|
||||
private:
|
||||
std::string //
|
||||
CopyIn(wuffs_aux::IOBuffer* dst, uint64_t history_retain_length) override {
|
||||
CopyIn(wuffs_aux::IOBuffer* dst) override {
|
||||
if (!m_rw) {
|
||||
return "Wuffs_Load_RW_Input: NULL SDL_RWops";
|
||||
} else if (!dst) {
|
||||
@@ -197,7 +197,7 @@ class Wuffs_Load_RW_Input : public wuffs_aux::sync_io::Input {
|
||||
} else if (dst->meta.closed) {
|
||||
return "Wuffs_Load_RW_Input: end of file";
|
||||
}
|
||||
dst->compact_retaining(history_retain_length);
|
||||
dst->compact();
|
||||
if (dst->writer_length() == 0) {
|
||||
return "Wuffs_Load_RW_Input: full IOBuffer";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user