diff options
Diffstat (limited to 'core/fpdfapi/parser/cpdf_boolean.cpp')
-rw-r--r-- | core/fpdfapi/parser/cpdf_boolean.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/fpdfapi/parser/cpdf_boolean.cpp b/core/fpdfapi/parser/cpdf_boolean.cpp index 0204fd9eb0..1cee3a3a49 100644 --- a/core/fpdfapi/parser/cpdf_boolean.cpp +++ b/core/fpdfapi/parser/cpdf_boolean.cpp @@ -44,3 +44,15 @@ CPDF_Boolean* CPDF_Boolean::AsBoolean() { const CPDF_Boolean* CPDF_Boolean::AsBoolean() const { return this; } + +bool CPDF_Boolean::WriteTo(CFX_FileBufferArchive* archive, + FX_FILESIZE* offset) const { + if (archive->AppendString(" ") < 0) + return false; + + int32_t len = archive->AppendString(GetString().AsStringC()); + if (len < 0) + return false; + *offset += len + 1; + return true; +} |