Adapt upstream PR 1638 -use deque to increase usable epub size
This commit is contained in:
1 parent
155f0c77ac
commit
5e08794706
5 files changed
+15
-14
No files matched your search
@@ -2,6 +2,7 @@
|
||||
#include <Print.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <deque>
|
||||
#include <vector>
|
||||
|
||||
#include "Epub.h"
|
||||
@@ -40,7 +41,7 @@ class ContentOpfParser final : public Print {
|
||||
uint16_t idLen; // length for collision reduction
|
||||
uint32_t fileOffset; // offset in .items.bin
|
||||
};
|
||||
std::vector<ItemIndexEntry> itemIndex;
|
||||
std::deque<ItemIndexEntry> itemIndex;
|
||||
bool useItemIndex = false;
|
||||
|
||||
static constexpr uint16_t LARGE_SPINE_THRESHOLD = 400;
|
||||
|
||||
Reference in new issue
Block a user