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
cpdfsdk_customaccess.h
Go to the documentation of this file.
1
// Copyright 2018 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
#
ifndef
FPDFSDK_CPDFSDK_CUSTOMACCESS_H_
8
#
define
FPDFSDK_CPDFSDK_CUSTOMACCESS_H_
9
10
#
include
"core/fxcrt/fx_stream.h"
11
#
include
"core/fxcrt/retain_ptr.h"
12
#
include
"public/fpdfview.h"
13
14
class
CPDFSDK_CustomAccess
final
:
public
IFX_SeekableReadStream
{
15
public
:
16
CONSTRUCT_VIA_MAKE_RETAIN
;
17
18
// IFX_SeekableReadStream
19
FX_FILESIZE
GetSize
()
override
;
20
bool
ReadBlockAtOffset
(pdfium::span<uint8_t> buffer,
21
FX_FILESIZE
offset)
override
;
22
23
private
:
24
explicit
CPDFSDK_CustomAccess(FPDF_FILEACCESS* pFileAccess);
25
~
CPDFSDK_CustomAccess
()
override
;
26
27
FPDF_FILEACCESS m_FileAccess;
28
};
29
30
#
endif
// FPDFSDK_CPDFSDK_CUSTOMACCESS_H_
CPDFSDK_CustomAccess::ReadBlockAtOffset
bool ReadBlockAtOffset(pdfium::span< uint8_t > buffer, FX_FILESIZE offset) override
Definition
cpdfsdk_customaccess.cpp:21
CPDFSDK_CustomAccess::GetSize
FX_FILESIZE GetSize() override
Definition
cpdfsdk_customaccess.cpp:17
CPDFSDK_CustomAccess::~CPDFSDK_CustomAccess
~CPDFSDK_CustomAccess() override
IFX_SeekableReadStream
Definition
fx_stream.h:57
FX_FILESIZE
#define FX_FILESIZE
Definition
fx_types.h:19
CONSTRUCT_VIA_MAKE_RETAIN
#define CONSTRUCT_VIA_MAKE_RETAIN
Definition
retain_ptr.h:224
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fpdfsdk
cpdfsdk_customaccess.h
Generated on Sat Sep 21 2024 00:56:51 for Qt by
1.12.0