diff options
Diffstat (limited to 'fpdfsdk/cpdfsdk_customaccess.h')
-rw-r--r-- | fpdfsdk/cpdfsdk_customaccess.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/fpdfsdk/cpdfsdk_customaccess.h b/fpdfsdk/cpdfsdk_customaccess.h index 76940ce58..734baeb40 100644 --- a/fpdfsdk/cpdfsdk_customaccess.h +++ b/fpdfsdk/cpdfsdk_customaccess.h @@ -1,4 +1,4 @@ -// Copyright 2018 PDFium Authors. All rights reserved. +// Copyright 2018 The PDFium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -8,18 +8,17 @@ #define FPDFSDK_CPDFSDK_CUSTOMACCESS_H_ #include "core/fxcrt/fx_stream.h" +#include "core/fxcrt/retain_ptr.h" #include "public/fpdfview.h" class CPDFSDK_CustomAccess final : public IFX_SeekableReadStream { public: - template <typename T, typename... Args> - friend RetainPtr<T> pdfium::MakeRetain(Args&&... args); + CONSTRUCT_VIA_MAKE_RETAIN; // IFX_SeekableReadStream FX_FILESIZE GetSize() override; - bool ReadBlockAtOffset(void* buffer, - FX_FILESIZE offset, - size_t size) override; + bool ReadBlockAtOffset(pdfium::span<uint8_t> buffer, + FX_FILESIZE offset) override; private: explicit CPDFSDK_CustomAccess(FPDF_FILEACCESS* pFileAccess); |