diff options
Diffstat (limited to 'core/include/fpdfapi/cpdf_object.h')
-rw-r--r-- | core/include/fpdfapi/cpdf_object.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/include/fpdfapi/cpdf_object.h b/core/include/fpdfapi/cpdf_object.h index 2add5524a8..97499d140c 100644 --- a/core/include/fpdfapi/cpdf_object.h +++ b/core/include/fpdfapi/cpdf_object.h @@ -150,4 +150,12 @@ inline const CPDF_Reference* ToReference(const CPDF_Object* obj) { return obj ? obj->AsReference() : nullptr; } +inline CPDF_Stream* ToStream(CPDF_Object* obj) { + return obj ? obj->AsStream() : nullptr; +} + +inline const CPDF_Stream* ToStream(const CPDF_Object* obj) { + return obj ? obj->AsStream() : nullptr; +} + #endif // CORE_INCLUDE_FPDFAPI_CPDF_OBJECT_H_ |