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:
Nigel Tao committed 2023-12-17 12:26:08 +11:00
1 parent b4e09690a7
commit eed1af7bee
34 files changed
+179 -640

No files matched your search

+3 -3
View File
@@ -96,7 +96,7 @@ class Input {
virtual ~Input();
virtual IOBuffer* BringsItsOwnIOBuffer();
virtual std::string CopyIn(IOBuffer* dst, uint64_t history_retain_length) = 0;
virtual std::string CopyIn(IOBuffer* dst) = 0;
};
// --------
@@ -108,7 +108,7 @@ class FileInput : public Input {
public:
FileInput(FILE* f);
virtual std::string CopyIn(IOBuffer* dst, uint64_t history_retain_length);
virtual std::string CopyIn(IOBuffer* dst);
private:
FILE* m_f;
@@ -129,7 +129,7 @@ class MemoryInput : public Input {
MemoryInput(const uint8_t* ptr, size_t len);
virtual IOBuffer* BringsItsOwnIOBuffer();
virtual std::string CopyIn(IOBuffer* dst, uint64_t history_retain_length);
virtual std::string CopyIn(IOBuffer* dst);
private:
IOBuffer m_io;