mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:57:46 +00:00
LibPDF: Support parsing page tree nodes that are in object streams
conditionally_parse_page_tree_node used to assume that the xref table contained a byte offset, even for compressed objects. It now uses the common facilities for parsing objects, at the expense of some performance.
This commit is contained in:
parent
6225c03256
commit
77f5f7a6f4
2 changed files with 20 additions and 42 deletions
|
@ -113,6 +113,9 @@ public:
|
|||
template<typename... Args>
|
||||
bool contains(Args&&... keys) const { return (m_map.contains(keys) && ...); }
|
||||
|
||||
template<typename... Args>
|
||||
bool contains_any_of(Args&&... keys) const { return (m_map.contains(keys) || ...); }
|
||||
|
||||
ALWAYS_INLINE Optional<Value> get(FlyString const& key) const { return m_map.get(key); }
|
||||
|
||||
Value get_value(FlyString const& key) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue