Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cpdf_null.cpp
Go to the documentation of this file.
1// Copyright 2016 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#include "core/fpdfapi/parser/cpdf_null.h"
8
9#include "core/fxcrt/fx_stream.h"
10
11CPDF_Null::CPDF_Null() = default;
12
13CPDF_Object::Type CPDF_Null::GetType() const {
14 return kNullobj;
15}
16
17RetainPtr<CPDF_Object> CPDF_Null::Clone() const {
18 return pdfium::MakeRetain<CPDF_Null>();
19}
20
21CPDF_Null* CPDF_Null::AsMutableNull() {
22 return this;
23}
24
25bool CPDF_Null::WriteTo(IFX_ArchiveStream* archive,
26 const CPDF_Encryptor* encryptor) const {
27 return archive->WriteString(" null");
28}
bool WriteTo(IFX_ArchiveStream *archive, const CPDF_Encryptor *encryptor) const override
Definition cpdf_null.cpp:25
RetainPtr< CPDF_Object > Clone() const override
Definition cpdf_null.cpp:17
Type GetType() const override
Definition cpdf_null.cpp:13
CPDF_Null * AsMutableNull() override
Definition cpdf_null.cpp:21
bool WriteString(ByteStringView str)
Definition fx_stream.cpp:47