summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_hint_tables.h
diff options
context:
space:
mode:
authorArtem Strygin <art-snake@yandex-team.ru>2018-06-13 18:37:56 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-13 18:37:56 +0000
commit437e5e4f03ea190c195c35a6cfdefef03cb50d10 (patch)
tree147299d564131d945ec3d32b85f2726b39198731 /core/fpdfapi/parser/cpdf_hint_tables.h
parent4c48b107c6d1e3d3029910062368d8d954e8f28a (diff)
downloadpdfium-437e5e4f03ea190c195c35a6cfdefef03cb50d10.tar.xz
Merge the offset calculation logic within CPDF_HintsTable.
Change-Id: If120ee16c53117ae148447e141cbbd8143194b36 Reviewed-on: https://pdfium-review.googlesource.com/15811 Commit-Queue: Art Snake <art-snake@yandex-team.ru> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_hint_tables.h')
-rw-r--r--core/fpdfapi/parser/cpdf_hint_tables.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/fpdfapi/parser/cpdf_hint_tables.h b/core/fpdfapi/parser/cpdf_hint_tables.h
index 3664e1517c..c51d95a255 100644
--- a/core/fpdfapi/parser/cpdf_hint_tables.h
+++ b/core/fpdfapi/parser/cpdf_hint_tables.h
@@ -41,6 +41,8 @@ class CPDF_HintTables {
uint32_t GetItemLength(uint32_t index,
const std::vector<FX_FILESIZE>& szArray) const;
+ FX_FILESIZE HintsOffsetToFileOffset(uint32_t hints_offset) const;
+
// Owned by |m_pDataAvail|.
UnownedPtr<CPDF_ReadValidator> m_pValidator;